Merge pull request #207 from matter-labs/container-tag

chore: tag container with git tag
This commit is contained in:
Harald Hoyer 2024-09-17 15:09:02 +02:00 committed by GitHub
commit 2c326f83bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ on:
branches: [ "main" ]
push:
branches: [ "main" ]
tags: [ "*-sgx-*" ]
tags: [ "*" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -121,6 +121,12 @@ jobs:
docker tag "${{ steps.build.outputs.IMAGE_TAG }}" matterlabsrobot/"${{ steps.build.outputs.IMAGE_NAME }}:latest"
docker push matterlabsrobot/"${{ steps.build.outputs.IMAGE_NAME }}:latest"
- name: Tag container with tag
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
run: |
docker tag "${{ steps.build.outputs.IMAGE_TAG }}" matterlabsrobot/"${{ steps.build.outputs.IMAGE_NAME }}:$GITHUB_REF_NAME"
docker push matterlabsrobot/"${{ steps.build.outputs.IMAGE_NAME }}:$GITHUB_REF_NAME"
- name: Generate build ID for Flux Image Automation
id: flux
if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/tags') }}