Skip to content

add github actions

add github actions #3

Workflow file for this run

name: build completion
on:
pull_request:
branches: ["main"]
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
required : true
type: choice
default: dev
options:
- dev
- test
- prod
permissions:
id-token: write
contents: read
jobs:
build-and-push-docker:
uses: equinor/procosys-completion-api/.github/workflows/build-and-push-docker.yaml@github-action-pipeline

Check failure on line 25 in .github/workflows/api-build.yaml

View workflow run for this annotation

GitHub Actions / build completion

Invalid workflow file

The workflow is not valid. In .github/workflows/api-build.yaml (Line: 25, Col: 11): Error from called workflow equinor/procosys-completion-api/.github/workflows/build-and-push-docker.yaml@github-action-pipeline (Line: 59, Col: 17): Unrecognized named-value: 'input'. Located at position 1 within expression: input.version
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
with:
repositoryName: procosys-completion
dockerFilePath: ./src/Dockerfile
environment: dev
version: 1.000.0.$(Build.BuildId)
# deploy-to-radix:
# needs: build-and-push-docker
# uses: equinor/procosys-completion-api/.github/workflows/deploy-to-radix.yaml@github-action-pipeline
# secrets:
# AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
# AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
# AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# with:
# applicationName: procosys-completion-api
# imageTag: ${{variables.versionNumber}}$(Build.BuildId)
# environment: dev