Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leecalcote authored Aug 24, 2020
1 parent 6c28dfc commit cee5c91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
docker:
name: Docker build and push
runs-on: ubuntu-latest
# needs: [build, build_release]
#needs: [build_release]
steps:
- name: Check out code
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
Expand All @@ -125,14 +125,14 @@ jobs:
fetch-depth: 1
- name: Docker login
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
uses: azure/container-actions/docker-login@master
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker build & tag
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
run: |
DOCKER_BUILDKIT=1 docker build --no-cache -t ${{ secrets.IMAGE_NAME }}:stable-latest .
DOCKER_BUILDKIT=1 docker build --no-cache -t ${{ secrets.IMAGE_NAME }}:stable-latest --build-arg TOKEN=${{ secrets.GLOBAL_TOKEN }} --build-arg GIT_COMMITSHA=${GITHUB_SHA::7} --build-arg GIT_VERSION=${GITHUB_REF/refs\/tags\//} .
docker tag ${{ secrets.IMAGE_NAME }}:stable-latest ${{ secrets.IMAGE_NAME }}:stable-${GITHUB_REF/refs\/tags\//}
docker tag ${{ secrets.IMAGE_NAME }}:stable-latest ${{ secrets.IMAGE_NAME }}:stable-${GITHUB_SHA::7}
- name: Docker push
Expand Down

0 comments on commit cee5c91

Please sign in to comment.