Skip to content

Commit

Permalink
Merge pull request #66 from KIT-MRT/add_version_tag_to_docker_image
Browse files Browse the repository at this point in the history
Read version from file and tag docker image in GitHub workflow
  • Loading branch information
ll-nick authored Oct 31, 2024
2 parents c4bdd48 + 514b803 commit 03e8f88
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-and-push-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand All @@ -25,9 +28,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Read version from file
run: |
cat version >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/kit-mrt/arbitration_graphs:latest

tags: |
ghcr.io/kit-mrt/arbitration_graphs:latest
ghcr.io/kit-mrt/arbitration_graphs:${{ env.VERSION }}

0 comments on commit 03e8f88

Please sign in to comment.