diff --git a/.github/workflows/build-and-push-docker.yaml b/.github/workflows/build-and-push-docker.yaml index 4edc8fca..06f9fbb9 100644 --- a/.github/workflows/build-and-push-docker.yaml +++ b/.github/workflows/build-and-push-docker.yaml @@ -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: @@ -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 }}