mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 15:39:37 -05:00
Fix container image workflows
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
86d29a4567
commit
84ca9e3070
@ -4,6 +4,10 @@ inputs:
|
|||||||
name:
|
name:
|
||||||
description: 'Name of the micro-service'
|
description: 'Name of the micro-service'
|
||||||
required: true
|
required: true
|
||||||
|
projectVersion:
|
||||||
|
description: 'Version of the micro-service'
|
||||||
|
default: '0.0.0'
|
||||||
|
required: false
|
||||||
dockerfile:
|
dockerfile:
|
||||||
description: 'Path to the services Dockerfile'
|
description: 'Path to the services Dockerfile'
|
||||||
required: true
|
required: true
|
||||||
@ -14,6 +18,7 @@ inputs:
|
|||||||
description: 'GitHub authorization token'
|
description: 'GitHub authorization token'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@ -49,3 +54,5 @@ runs:
|
|||||||
target: release
|
target: release
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
build-args: |
|
||||||
|
PROJECT_VERSION=${{ inputs.projectVersion }}
|
||||||
|
@ -28,5 +28,6 @@ jobs:
|
|||||||
uses: ./.github/actions/build_micro-service
|
uses: ./.github/actions/build_micro-service
|
||||||
with:
|
with:
|
||||||
name: access-manager
|
name: access-manager
|
||||||
|
projectVersion: '0.0.0'
|
||||||
dockerfile: access_manager/Dockerfile
|
dockerfile: access_manager/Dockerfile
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
3
.github/workflows/build-activation-image.yml
vendored
3
.github/workflows/build-activation-image.yml
vendored
@ -30,5 +30,6 @@ jobs:
|
|||||||
uses: ./.github/actions/build_micro-service
|
uses: ./.github/actions/build_micro-service
|
||||||
with:
|
with:
|
||||||
name: activation-service
|
name: activation-service
|
||||||
|
projectVersion: '0.0.0'
|
||||||
dockerfile: activation/Dockerfile
|
dockerfile: activation/Dockerfile
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
3
.github/workflows/build-kms-image.yml
vendored
3
.github/workflows/build-kms-image.yml
vendored
@ -29,5 +29,6 @@ jobs:
|
|||||||
uses: ./.github/actions/build_micro-service
|
uses: ./.github/actions/build_micro-service
|
||||||
with:
|
with:
|
||||||
name: kmsserver
|
name: kmsserver
|
||||||
|
projectVersion: '0.0.0'
|
||||||
dockerfile: Dockerfile.kms
|
dockerfile: Dockerfile.kms
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
15
.github/workflows/build-micro-service-manual.yml
vendored
15
.github/workflows/build-micro-service-manual.yml
vendored
@ -11,11 +11,15 @@ on:
|
|||||||
- 'activation-service'
|
- 'activation-service'
|
||||||
- 'kmsserver'
|
- 'kmsserver'
|
||||||
required: true
|
required: true
|
||||||
default: 'access manager'
|
default: 'access-manager'
|
||||||
imageTag:
|
imageTag:
|
||||||
description: 'Container image tag'
|
description: 'Container image tag'
|
||||||
required: true
|
required: true
|
||||||
default: 'manual-build'
|
default: 'manual-build'
|
||||||
|
version:
|
||||||
|
description: 'Version of the image to build'
|
||||||
|
required: true
|
||||||
|
default: '0.0.0'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-micro-service:
|
build-micro-service:
|
||||||
@ -32,11 +36,11 @@ jobs:
|
|||||||
- name: Set Dockerfile variable
|
- name: Set Dockerfile variable
|
||||||
id: set-variable
|
id: set-variable
|
||||||
run: |
|
run: |
|
||||||
case "${{ env.someVar }}" in
|
case "${{ inputs.microService }}" in
|
||||||
"access-manager" )
|
"access-manager" )
|
||||||
echo "microServiceDockerfile=access_manager/Dockerfile" >> $GITHUB_ENV ;;
|
echo "microServiceDockerfile=access_manager/Dockerfile" >> $GITHUB_ENV ;;
|
||||||
"activation-service" )
|
"activation-service" )
|
||||||
echo "microServiceDockerfile=activation-service/Dockerfile" >> $GITHUB_ENV ;;
|
echo "microServiceDockerfile=activation/Dockerfile" >> $GITHUB_ENV ;;
|
||||||
"kmsserver" )
|
"kmsserver" )
|
||||||
echo "microServiceDockerfile=Dockerfile.kms" >> $GITHUB_ENV ;;
|
echo "microServiceDockerfile=Dockerfile.kms" >> $GITHUB_ENV ;;
|
||||||
esac
|
esac
|
||||||
@ -46,6 +50,7 @@ jobs:
|
|||||||
uses: ./.github/actions/build_micro-service
|
uses: ./.github/actions/build_micro-service
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.microService }}
|
name: ${{ inputs.microService }}
|
||||||
|
projectVersion: '0.0.0'
|
||||||
dockerfile: ${{ env.microServiceDockerfile }}
|
dockerfile: ${{ env.microServiceDockerfile }}
|
||||||
tag: ${{ inputs.imageTag }}
|
pushTag: ${{ inputs.imageTag }}
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user