Skip to content

Commit

Permalink
Merge pull request #207 from matter-labs/container-tag
Browse files Browse the repository at this point in the history
chore: tag container with git tag
  • Loading branch information
haraldh authored Sep 17, 2024
2 parents 3b7041b + e7b743b commit 2c326f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "main" ]
push:
branches: [ "main" ]
tags: [ "*-sgx-*" ]
tags: [ "*" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -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') }}
Expand Down

0 comments on commit 2c326f8

Please sign in to comment.