diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 8e89353..94d8cb9 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -11,7 +11,7 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@v3.0.0 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -19,7 +19,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Cache pnpm modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.pnpm-store key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -91,10 +91,10 @@ jobs: runs-on: ubuntu-20.04 if: github.event_name == 'push' && (startsWith(github.event.ref, 'refs/tags/') || startsWith(github.event.ref, 'refs/heads/v0.') || github.event.ref == 'refs/heads/master' || github.event.ref == 'refs/heads/test') steps: - - uses: actions/checkout@v3.0.0 + - uses: actions/checkout@v3 - name: Cache Docker layers - uses: actions/cache@v2.1.7 + uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -103,7 +103,7 @@ jobs: - name: Docker meta id: docker_meta - uses: docker/metadata-action@v3.6.2 + uses: docker/metadata-action@v4 with: images: haishanh/yacd @@ -112,7 +112,7 @@ jobs: - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: version: latest @@ -122,13 +122,13 @@ jobs: run: echo ${{ steps.buildx.outputs.platforms }} - name: Login to Docker Hub - uses: docker/login-action@v1.14.1 + uses: docker/login-action@v2 with: username: ${{ github.actor }} password: ${{ secrets.DOCKER_HUB_PASSWORD }} - name: Login to GHCR - uses: docker/login-action@v1.10.0 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -136,7 +136,7 @@ jobs: - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile