update: actions/checkout@v3

This commit is contained in:
0xJacky 2022-11-04 22:51:38 +08:00
parent b97adcb250
commit 637036fd68
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0

View file

@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Set up nodejs - name: Set up nodejs
uses: actions/setup-node@v3 uses: actions/setup-node@v3
@ -104,7 +104,7 @@ jobs:
GOARM: ${{ matrix.goarm }} GOARM: ${{ matrix.goarm }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Get the version - name: Get the version
id: get_version id: get_version
@ -194,7 +194,7 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
if: env.GOOS == 'linux' && env.GOARCH == 'amd64' if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
- name: Login to DockerHub - name: Login to DockerHub
if: env.GOOS == 'linux' && env.GOARCH == 'amd64' if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
@ -211,7 +211,7 @@ jobs:
- name: Build and push - name: Build and push
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64' if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: ./dist context: ./dist
file: ./dist/Dockerfile file: ./dist/Dockerfile
@ -229,7 +229,7 @@ jobs:
- name: Build and push demo - name: Build and push demo
if: env.GOOS == 'linux' && env.GOARCH == 'amd64' if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: ./dist context: ./dist
file: ./dist/demo.Dockerfile file: ./dist/demo.Dockerfile