chore: fix docker build push yml

This commit is contained in:
Jun Kurihara 2023-10-11 22:36:24 +09:00
commit 85beedc5c7
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23

View file

@ -119,19 +119,19 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Nightly build test on amd64 for pull requests # - name: Nightly build test on amd64 for pull requests
if: ${{ github.event_name == 'pull_request' }} # if: ${{ github.event_name == 'pull_request' }}
uses: docker/build-push-action@v5 # uses: docker/build-push-action@v5
with: # with:
context: . # context: .
build-args: ${{ matrix.build-args }} # build-args: ${{ matrix.build-args }}
push: false # push: false
build-contexts: ${{ matrix.build-contexts }} # build-contexts: ${{ matrix.build-contexts }}
file: ${{ matrix.dockerfile }} # file: ${{ matrix.dockerfile }}
cache-from: type=gha,scope=rpxy-nightly-${{ matrix.target }} # cache-from: type=gha,scope=rpxy-nightly-${{ matrix.target }}
cache-to: type=gha,mode=max,scope=rpxy-nightly-${{ matrix.target }} # cache-to: type=gha,mode=max,scope=rpxy-nightly-${{ matrix.target }}
platforms: linux/amd64 # platforms: linux/amd64
labels: ${{ steps.meta.outputs.labels }} # labels: ${{ steps.meta.outputs.labels }}
- name: Nightly build and push from develop branch - name: Nightly build and push from develop branch
if: ${{ (github.ref_name == 'develop') && (github.event_name == 'push') }} if: ${{ (github.ref_name == 'develop') && (github.event_name == 'push') }}