ci: upgrade docker action

This commit is contained in:
Steven Tang 2023-04-04 22:52:33 +10:00
parent beced39923
commit 44c481b9e0
No known key found for this signature in database
GPG Key ID: 1597520C734BAE66
1 changed files with 6 additions and 6 deletions

View File

@ -20,19 +20,19 @@ jobs:
|| git rev-parse --short HEAD) > version.txt 2> /dev/null || git rev-parse --short HEAD) > version.txt 2> /dev/null
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
@ -40,7 +40,7 @@ jobs:
- name: Docker Metadata - name: Docker Metadata
id: meta id: meta
uses: docker/metadata-action@v3 uses: docker/metadata-action@v4
with: with:
images: | images: |
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}
@ -53,7 +53,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v4
with: with:
context: . context: .
file: Dockerfile file: Dockerfile