Skip to content

Commit

Permalink
Update docker-login action
Browse files Browse the repository at this point in the history
  • Loading branch information
aweakley committed Jul 23, 2024
1 parent 9143a85 commit ce7413c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- linux
- self-hosted
steps:
- uses: docker/login-action@v1.10.0
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -39,7 +39,7 @@ jobs:
- linux
- self-hosted
steps:
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- self-hosted
- x64
steps:
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -99,15 +99,15 @@ jobs:
file: ${{ matrix.version }}/Dockerfile
no-cache: ${{ github.event_name == 'schedule' }}
push: true
tags: ${{ env.IMAGE_REPO }}:sha-${{ env.IMAGE_TAG }}
tags: ${{ env.IMAGE_REPO }}:${{ env.IMAGE_TAG }}
- name: Push branch tag
run: |
docker tag ${{ env.IMAGE_REPO }}:sha-${{ env.IMAGE_TAG }} ${{ env.IMAGE_REPO }}:${GITHUB_REF#refs/heads/}-${{ matrix.version }}
docker tag ${{ env.IMAGE_REPO }}:${{ env.IMAGE_TAG }} ${{ env.IMAGE_REPO }}:${GITHUB_REF#refs/heads/}-${{ matrix.version }}
docker push ${{ env.IMAGE_REPO }}:${GITHUB_REF#refs/heads/}-${{ matrix.version }}
- name: Push version tag
if: github.ref == 'refs/heads/master'
run: |
docker tag ${{ env.IMAGE_REPO }}:sha-${{ env.IMAGE_TAG }} ${{ env.IMAGE_REPO }}:${{ matrix.version }}
docker tag ${{ env.IMAGE_REPO }}:${{ env.IMAGE_TAG }} ${{ env.IMAGE_REPO }}:${{ matrix.version }}
docker push ${{ env.IMAGE_REPO }}:${{ matrix.version }}
strategy:
matrix:
Expand Down

0 comments on commit ce7413c

Please sign in to comment.