Skip to content

Commit

Permalink
add version tag to each step
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Schwab committed Dec 1, 2024
1 parent 13cb173 commit c3f55fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
docker build . -t ${{ vars.DOCKER_HUB_USERNAME }}/backup:latest
- name: build docker image ${VERSION}
run: |
VERSION=$(cat VERSION | tr -d ' \t\n\r')
cd docker
docker build . -t ${{ vars.DOCKER_HUB_USERNAME }}/backup:${VERSION}
- name: Login to Docker Hub
Expand All @@ -34,6 +35,7 @@ jobs:
username: ${{ vars.DOCKER_HUB_USERNAME }}
- name: push ${VERSION}
run: |
VERSION=$(cat VERSION | tr -d ' \t\n\r')
docker push ${{ vars.DOCKER_HUB_USERNAME }}/backup:${VERSION}
env:
username: ${{ vars.DOCKER_HUB_USERNAME }}
Expand Down

0 comments on commit c3f55fa

Please sign in to comment.