From 55b986f48777cb2120193500b0316555c58e0613 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 15:44:24 +0200 Subject: [PATCH 01/16] Trying out a 'fabric8' version. --- .github/workflows/maven-fabric8-deploy.yml | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/maven-fabric8-deploy.yml diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml new file mode 100644 index 0000000..de53a26 --- /dev/null +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -0,0 +1,72 @@ +name: Maven Deploy + +on: + workflow_call: + inputs: + time-zone: + required: false + default: "Europe/Amsterdam" + type: string + timeout-minutes: + required: false + default: 10 + type: number + +jobs: + maven-deploy: + runs-on: ubuntu-24.04 + timeout-minutes: ${{ inputs.timeout-minutes }} + env: + TZ: ${{ inputs.time-zone }} + MAVEN_ARGS: '--no-transfer-progress' + java_version: 21 + steps: + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: AWS Credentials + uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0 + with: + aws-region: eu-west-1 + role-to-assume: arn:aws:iam::917951871879:role/GitHubActionsBgOrg + - name: Get CodeArtifact Authorization Token + run: | + codeartifact_auth_token=$(aws codeartifact get-authorization-token --domain nisv-ateam --domain-owner 917951871879 --region eu-west-1 --query authorizationToken --output text) + echo "::add-mask::$codeartifact_auth_token" + echo "CODEARTIFACT_AUTH_TOKEN=$codeartifact_auth_token" >> "$GITHUB_ENV" + + - name: Set up JDK + uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 + with: + distribution: 'temurin' + java-version-file: ${java.version} + cache: 'maven' + - name: Set Maven settings.xml # This seems, odd, setup-java can do this + run: echo "${{ vars.MAVEN_CODE_ARTIFACT_SETTINGS }}" | base64 --decode > ~/.m2/settings.xml + - name: Maven install + run: | + mvn -B -U clean install -fae + - name: ECR Login + uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1 + - name: Build, push Docker images, and trigger workflows for auto deployment + env: + GH_TOKEN: ${{ secrets.GH_PAT }} + run: | + ECR_IMAGE_REPOSITORY=917951871879.dkr.ecr.eu-west-1.amazonaws.com/${{ github.event.repository.name }} + for dir in ${{ find . -name docker -type d }}; do + cd $dir/../.. + ARTIFACTID=`mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout` + VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` + IMAGE_TAG=$(VERSION) + docker push $ECR_IMAGE_REPOSITORY/$ARTFACTID:$IMAGE_TAG + + // ??? + echo "Update image for deployment script of test environment" + gh workflow run update-maven-projects-image-tag.yml \ + -r main \ + -R github.com/beeldengeluid/k8s-workloads \ + -f project=${{ github.event.repository.name }} \ + -f environments=tst \ + -f image_tag_prefix=$(basename $dir) \ + -f image_tag=$IMAGE_TAG + done + From 0ae468806f9b8cd2f11c507a4800fd77adb54657 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 15:52:55 +0200 Subject: [PATCH 02/16] of course... --- .github/workflows/maven-fabric8-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml index de53a26..406a13d 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -52,7 +52,7 @@ jobs: GH_TOKEN: ${{ secrets.GH_PAT }} run: | ECR_IMAGE_REPOSITORY=917951871879.dkr.ecr.eu-west-1.amazonaws.com/${{ github.event.repository.name }} - for dir in ${{ find . -name docker -type d }}; do + for dir in `find . -name docker -type d `; do cd $dir/../.. ARTIFACTID=`mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout` VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` From 9e8f6112b3199b95bd9ed8804842ad5b1667453b Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 15:54:55 +0200 Subject: [PATCH 03/16] another try --- .github/workflows/maven-fabric8-deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml index 406a13d..b88bccc 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -11,6 +11,10 @@ on: required: false default: 10 type: number + java-version: + required: false + default: 21 + type: string jobs: maven-deploy: @@ -19,7 +23,6 @@ jobs: env: TZ: ${{ inputs.time-zone }} MAVEN_ARGS: '--no-transfer-progress' - java_version: 21 steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -38,7 +41,7 @@ jobs: uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 with: distribution: 'temurin' - java-version-file: ${java.version} + java-version-file: ${{ inputs.java-version }} cache: 'maven' - name: Set Maven settings.xml # This seems, odd, setup-java can do this run: echo "${{ vars.MAVEN_CODE_ARTIFACT_SETTINGS }}" | base64 --decode > ~/.m2/settings.xml From 6489ed93cabff388db36b62ac2db218bd526600d Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 15:59:40 +0200 Subject: [PATCH 04/16] Ok, I see. --- .github/workflows/maven-fabric8-deploy.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml index b88bccc..2a4636e 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -11,10 +11,6 @@ on: required: false default: 10 type: number - java-version: - required: false - default: 21 - type: string jobs: maven-deploy: @@ -41,7 +37,7 @@ jobs: uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 with: distribution: 'temurin' - java-version-file: ${{ inputs.java-version }} + java-version-file: '.java-version' cache: 'maven' - name: Set Maven settings.xml # This seems, odd, setup-java can do this run: echo "${{ vars.MAVEN_CODE_ARTIFACT_SETTINGS }}" | base64 --decode > ~/.m2/settings.xml @@ -55,7 +51,7 @@ jobs: GH_TOKEN: ${{ secrets.GH_PAT }} run: | ECR_IMAGE_REPOSITORY=917951871879.dkr.ecr.eu-west-1.amazonaws.com/${{ github.event.repository.name }} - for dir in `find . -name docker -type d `; do + for dir in find . -name docker -type d }}; do cd $dir/../.. ARTIFACTID=`mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout` VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` From 63376f4648ae2839877de30897412ca90fdb57ef Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 16:30:30 +0200 Subject: [PATCH 05/16] simplify9ing. --- .github/workflows/maven-fabric8-deploy.yml | 24 ++++++++-------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml index 2a4636e..ab6bda7 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -51,21 +51,13 @@ jobs: GH_TOKEN: ${{ secrets.GH_PAT }} run: | ECR_IMAGE_REPOSITORY=917951871879.dkr.ecr.eu-west-1.amazonaws.com/${{ github.event.repository.name }} - for dir in find . -name docker -type d }}; do - cd $dir/../.. - ARTIFACTID=`mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout` - VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` - IMAGE_TAG=$(VERSION) - docker push $ECR_IMAGE_REPOSITORY/$ARTFACTID:$IMAGE_TAG - - // ??? - echo "Update image for deployment script of test environment" - gh workflow run update-maven-projects-image-tag.yml \ - -r main \ - -R github.com/beeldengeluid/k8s-workloads \ - -f project=${{ github.event.repository.name }} \ - -f environments=tst \ - -f image_tag_prefix=$(basename $dir) \ - -f image_tag=$IMAGE_TAG + for dir in `find . -name docker -type d`; do + cd $dir/../.. + ARTIFACTID=`mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout` + VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` + IMAGE_TAG=$VERSION + echo $IMAGE_TAG + docker image tag $ARTIFACTID:$IMAGE_TAG $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG + echo docker push $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG done From 62029b9b22a3498206899215de8302583d5134a9 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 16:35:12 +0200 Subject: [PATCH 06/16] Some debug statements. --- .github/workflows/maven-fabric8-deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml index ab6bda7..d49c690 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -57,7 +57,9 @@ jobs: VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` IMAGE_TAG=$VERSION echo $IMAGE_TAG + docker image ls docker image tag $ARTIFACTID:$IMAGE_TAG $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG - echo docker push $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG + docker image ls + docker push $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG done From 13a73473ac3fcf533550b934904b2844500f7598 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 16:52:05 +0200 Subject: [PATCH 07/16] We may even leaving pushing itself to the docker image too. --- .github/workflows/maven-fabric8-deploy.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-fabric8-deploy.yml index d49c690..c83cd80 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-fabric8-deploy.yml @@ -1,23 +1,17 @@ name: Maven Deploy + +# A build where the docker image is created by the 'fabric8' maven plugin +# + on: workflow_call: - inputs: - time-zone: - required: false - default: "Europe/Amsterdam" - type: string - timeout-minutes: - required: false - default: 10 - type: number jobs: maven-deploy: runs-on: ubuntu-24.04 - timeout-minutes: ${{ inputs.timeout-minutes }} env: - TZ: ${{ inputs.time-zone }} + TZ: 'Europe/Amsterdam' MAVEN_ARGS: '--no-transfer-progress' steps: - name: Checkout code @@ -58,8 +52,8 @@ jobs: IMAGE_TAG=$VERSION echo $IMAGE_TAG docker image ls - docker image tag $ARTIFACTID:$IMAGE_TAG $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG - docker image ls - docker push $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG + #docker image tag $ARTIFACTID:$IMAGE_TAG $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG + #docker image ls + #docker push $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG done From e173fb0102a48aff3f38c98df2865a65c7a4c9b0 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 19:19:22 +0200 Subject: [PATCH 08/16] Simplified. --- ...ven-fabric8-deploy.yml => maven-build.yml} | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) rename .github/workflows/{maven-fabric8-deploy.yml => maven-build.yml} (60%) diff --git a/.github/workflows/maven-fabric8-deploy.yml b/.github/workflows/maven-build.yml similarity index 60% rename from .github/workflows/maven-fabric8-deploy.yml rename to .github/workflows/maven-build.yml index c83cd80..3ada766 100644 --- a/.github/workflows/maven-fabric8-deploy.yml +++ b/.github/workflows/maven-build.yml @@ -38,22 +38,6 @@ jobs: - name: Maven install run: | mvn -B -U clean install -fae - - name: ECR Login - uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1 - - name: Build, push Docker images, and trigger workflows for auto deployment - env: - GH_TOKEN: ${{ secrets.GH_PAT }} - run: | - ECR_IMAGE_REPOSITORY=917951871879.dkr.ecr.eu-west-1.amazonaws.com/${{ github.event.repository.name }} - for dir in `find . -name docker -type d`; do - cd $dir/../.. - ARTIFACTID=`mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout` - VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` - IMAGE_TAG=$VERSION - echo $IMAGE_TAG - docker image ls - #docker image tag $ARTIFACTID:$IMAGE_TAG $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG - #docker image ls - #docker push $ECR_IMAGE_REPOSITORY/$ARTIFACTID:$IMAGE_TAG - done - + docker image ls + + From 074790c13f67a2b543e66c7f39a78b5484c82fe8 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 19:31:15 +0200 Subject: [PATCH 09/16] Lets see if docker metadata action could be got workign with ecr? --- .github/workflows/maven-build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 3ada766..5dc8931 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -7,6 +7,12 @@ name: Maven Deploy on: workflow_call: + +env: + REGISTRY: 917951871879.dkr.ecr.eu-west-1.amazonaws.com + IMAGE_NAME: ${{ github.event.repository.name }} + + jobs: maven-deploy: runs-on: ubuntu-24.04 @@ -33,10 +39,24 @@ jobs: distribution: 'temurin' java-version-file: '.java-version' cache: 'maven' + - name: ECR Login + uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1 + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=ref,event=tag + type=raw,value=latest,enable={{is_default_branch}} + type=pep440,pattern={{major}},event=tag- - name: Set Maven settings.xml # This seems, odd, setup-java can do this run: echo "${{ vars.MAVEN_CODE_ARTIFACT_SETTINGS }}" | base64 --decode > ~/.m2/settings.xml - name: Maven install run: | + echo Tags: ${{ steps.meta.outputs.tags }} + echo Lables: ${{ steps.meta.outputs.labels }} mvn -B -U clean install -fae docker image ls From 9886d99e75bfa39f041237d33c6ea4c725e59451 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 31 Mar 2025 19:46:37 +0200 Subject: [PATCH 10/16] Nice, but let's postpone that. --- .github/workflows/maven-build.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 5dc8931..f260eff 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -41,23 +41,13 @@ jobs: cache: 'maven' - name: ECR Login uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1 - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=ref,event=branch - type=ref,event=tag - type=raw,value=latest,enable={{is_default_branch}} - type=pep440,pattern={{major}},event=tag- - name: Set Maven settings.xml # This seems, odd, setup-java can do this run: echo "${{ vars.MAVEN_CODE_ARTIFACT_SETTINGS }}" | base64 --decode > ~/.m2/settings.xml - name: Maven install run: | - echo Tags: ${{ steps.meta.outputs.tags }} - echo Lables: ${{ steps.meta.outputs.labels }} mvn -B -U clean install -fae - docker image ls + - name: Docker image ls + run: | + docker image ls From 00c393f37053701416a9ee830dfd80c43f9cb31f Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 1 Apr 2025 12:50:28 +0200 Subject: [PATCH 11/16] lets see how this would work? --- .github/workflows/maven-build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index f260eff..9a7905a 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -1,7 +1,7 @@ name: Maven Deploy -# A build where the docker image is created by the 'fabric8' maven plugin +# A build where the docker image(s) is (are) created by a maven plugin # on: @@ -49,5 +49,15 @@ jobs: - name: Docker image ls run: | docker image ls + - name: Deploy + run: | + gh workflow run update-maven-projects-image-tag.yml \ + -r main \ + -R github.com/beeldengeluid/k8s-workloads \ + -f project=${{ github.event.repository.name }} \ + -f environments=tst \ + -f image_tag_prefix='' \ + -f image_tag=latest + From 58d2ac897f7a75eacd1e4f55c16f57cc4457748c Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 1 Apr 2025 12:53:25 +0200 Subject: [PATCH 12/16] Need token for that. --- .github/workflows/maven-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 9a7905a..961ee1b 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -46,10 +46,13 @@ jobs: - name: Maven install run: | mvn -B -U clean install -fae + # docker ls only interesting if the build actually happens using docker. E.g. if the build uses jib, the doocker image will be directly pushed to ecr, and not even show up here - name: Docker image ls run: | docker image ls - name: Deploy + env: + GH_TOKEN: ${{ secrets.GH_PAT }} run: | gh workflow run update-maven-projects-image-tag.yml \ -r main \ From de8682a47b9c524d152b11155b940b055dccd9db Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 1 Apr 2025 12:56:14 +0200 Subject: [PATCH 13/16] comments only. --- .github/workflows/maven-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 961ee1b..1aa2621 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -51,8 +51,9 @@ jobs: run: | docker image ls - name: Deploy + # This will actually to commit stuff to k8s-workloads repo. I think it is odd, I just want to trigger a rollout env: - GH_TOKEN: ${{ secrets.GH_PAT }} + GH_TOKEN: ${{ secrets.GH_PAT }} # why GITHUB_TOKEN cannot suffice? run: | gh workflow run update-maven-projects-image-tag.yml \ -r main \ From bc7894a94b78de2ee109b2597538c6c04361139a Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 1 Apr 2025 13:01:30 +0200 Subject: [PATCH 14/16] whm? --- .github/workflows/maven-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 1aa2621..de3b069 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -53,7 +53,7 @@ jobs: - name: Deploy # This will actually to commit stuff to k8s-workloads repo. I think it is odd, I just want to trigger a rollout env: - GH_TOKEN: ${{ secrets.GH_PAT }} # why GITHUB_TOKEN cannot suffice? + GH_TOKEN: ${{ secrets.GH_PAT }} run: | gh workflow run update-maven-projects-image-tag.yml \ -r main \ From 368137744295ae9f2bd7eef2bad12abdd698064d Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 1 Apr 2025 13:02:42 +0200 Subject: [PATCH 15/16] whm? --- .github/workflows/maven-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index de3b069..4e38ff8 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -55,6 +55,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_PAT }} run: | + echo ${GH_TOKEN} | wc gh workflow run update-maven-projects-image-tag.yml \ -r main \ -R github.com/beeldengeluid/k8s-workloads \ From 5835d365cb4fb57095104279b4882096fb97dbc9 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 1 Apr 2025 13:05:36 +0200 Subject: [PATCH 16/16] we need to specify image tag prefix? --- .github/workflows/maven-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 4e38ff8..f8f7104 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -55,14 +55,14 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_PAT }} run: | - echo ${GH_TOKEN} | wc + gh workflow run update-maven-projects-image-tag.yml \ -r main \ -R github.com/beeldengeluid/k8s-workloads \ -f project=${{ github.event.repository.name }} \ -f environments=tst \ - -f image_tag_prefix='' \ - -f image_tag=latest + -f image_tag_prefix='lat' \ + -f image_tag=est