Skip to content

Commit

Permalink
Update docker-function.yml
Browse files Browse the repository at this point in the history
Fix tagging
  • Loading branch information
Simon Waight authored Jul 8, 2024
1 parent 63a29d4 commit ac7b75d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- uses: actions/checkout@v4
- name: Build the Docker image
run:
docker pull ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-asynclatest || true;
docker build . --file Docker/Dockerfile --cache-from ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-asynclatest --tag ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker tag ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-asynclatest:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-asynclatest:latest;
docker push ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker push ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-asynclatest
docker pull ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:latest || true;
docker build . --file Docker/Dockerfile --cache-from ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:latest --tag ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker tag ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:latest;
docker push ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker push ${{ secrets.ACR_LOGIN_SERVER }}/acs-oai-async:latest

0 comments on commit ac7b75d

Please sign in to comment.