diff --git a/.github/workflows/build-push-image-davrods.yml b/.github/workflows/build-push-image-davrods.yml index c3323db70..5193c3e37 100644 --- a/.github/workflows/build-push-image-davrods.yml +++ b/.github/workflows/build-push-image-davrods.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-davrods.yml' - 'docker/images/davrods/**' jobs: @@ -16,6 +18,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -36,4 +43,4 @@ jobs: context: yoda/docker/images/davrods file: yoda/docker/images/davrods/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/davrods:dev-1.9 + tags: ghcr.io/utrechtuniversity/davrods:${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/build-push-image-eus.yml b/.github/workflows/build-push-image-eus.yml index f25a3f9c5..45abe7d57 100644 --- a/.github/workflows/build-push-image-eus.yml +++ b/.github/workflows/build-push-image-eus.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-eus.yml' - 'docker/images/yoda_eus/**' jobs: @@ -16,6 +18,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -36,4 +43,4 @@ jobs: context: yoda/docker/images/yoda_eus file: yoda/docker/images/yoda_eus/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/yoda-eus:dev-1.9 + tags: ghcr.io/utrechtuniversity/yoda-eus:${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/build-push-image-mailpit.yml b/.github/workflows/build-push-image-mailpit.yml index 425c770d6..6e902a386 100644 --- a/.github/workflows/build-push-image-mailpit.yml +++ b/.github/workflows/build-push-image-mailpit.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-mailpit.yml' - 'docker/images/mailpit/**' jobs: @@ -16,6 +18,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -37,4 +44,4 @@ jobs: run: | cd yoda/docker/images/mailpit ./build.sh - docker push ghcr.io/utrechtuniversity/yoda-mailpit:dev-1.9 + docker push ghcr.io/utrechtuniversity/yoda-mailpit:${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/build-push-image-portal.yml b/.github/workflows/build-push-image-portal.yml index 3c9a69ba8..11b003881 100644 --- a/.github/workflows/build-push-image-portal.yml +++ b/.github/workflows/build-push-image-portal.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-portal.yml' - 'docker/images/yoda_portal/**' jobs: @@ -16,6 +18,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -36,4 +43,4 @@ jobs: context: yoda/docker/images/yoda_portal file: yoda/docker/images/yoda_portal/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/yoda-portal:dev-1.9 + tags: ghcr.io/utrechtuniversity/yoda-portal:${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/build-push-image-provider.yml b/.github/workflows/build-push-image-provider.yml index 1bf9047ad..c11b6ef22 100644 --- a/.github/workflows/build-push-image-provider.yml +++ b/.github/workflows/build-push-image-provider.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-provider.yml' - 'docker/images/yoda_irods_icat/**' - 'roles/irods_completion/files/irods_completion.sh' - 'roles/pam_python/files/pam_python.so' @@ -19,6 +21,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -44,4 +51,4 @@ jobs: context: yoda/docker/images/yoda_irods_icat file: yoda/docker/images/yoda_irods_icat/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/yoda-provider:dev-1.9 + tags: ghcr.io/utrechtuniversity/yoda-provider:${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/build-push-image-public.yml b/.github/workflows/build-push-image-public.yml index 7d19d97fa..19ae9979a 100644 --- a/.github/workflows/build-push-image-public.yml +++ b/.github/workflows/build-push-image-public.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-public.yml' - 'docker/images/yoda_public/**' - 'roles/yoda_landingpages/files/**' @@ -17,6 +19,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -42,4 +49,4 @@ jobs: context: yoda/docker/images/yoda_public file: yoda/docker/images/yoda_public/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/yoda-public:dev-1.9 + tags: ghcr.io/utrechtuniversity/yoda-public:${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/build-push-image-web-mock.yml b/.github/workflows/build-push-image-web-mock.yml index c2f6e44e7..7694dfb86 100644 --- a/.github/workflows/build-push-image-web-mock.yml +++ b/.github/workflows/build-push-image-web-mock.yml @@ -5,7 +5,9 @@ on: push: branches: - 'development' + - 'release-1.9' paths: + - '.github/workflows/build-push-image-web-mock.yml' - 'docker/images/yoda_web_mock/**' jobs: @@ -16,6 +18,11 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: @@ -36,4 +43,4 @@ jobs: context: yoda/docker/images/yoda_web_mock file: yoda/docker/images/yoda_web_mock/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/yoda-web-mock:dev-1.9 + tags: ghcr.io/utrechtuniversity/yoda-web-mock:${{ steps.extract_branch.outputs.branch }}