Skip to content

Commit

Permalink
Update Docker Image Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel committed Mar 25, 2024
1 parent f6df73a commit 7d5dbd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
uses: actions/checkout@v1

- name: Build API image
run: docker build src/api/ --file src/api/Dockerfile --tag robinmanuelthiel/microcommunication-api:$(date +%s) --tag robinmanuelthiel/microcommunication-api:latest
run: docker build src/api/ --file src/api/Dockerfile --tag robinmanuelthiel/microcommunication-api:${{ github.run_id }}.${{ github.run_attempt }} --tag robinmanuelthiel/microcommunication-api:latest

- name: Build Random image
run: docker build src/random/ --file src/random/Dockerfile --tag robinmanuelthiel/microcommunication-random:$(date +%s) --tag robinmanuelthiel/microcommunication-random:latest
run: docker build src/random/ --file src/random/Dockerfile --tag robinmanuelthiel/microcommunication-random:${{ github.run_id }}.${{ github.run_attempt }} --tag robinmanuelthiel/microcommunication-random:latest

- name: Build Web image
run: docker build src/web/ --file src/web/Dockerfile --tag robinmanuelthiel/microcommunication-web:$(date +%s) --tag robinmanuelthiel/microcommunication-web:latest
run: docker build src/web/ --file src/web/Dockerfile --tag robinmanuelthiel/microcommunication-web:${{ github.run_id }}.${{ github.run_attempt }} --tag robinmanuelthiel/microcommunication-web:latest

- name: Login to Docker Hub
run: docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
Expand Down

0 comments on commit 7d5dbd2

Please sign in to comment.