mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
Update build.yml
This commit is contained in:
parent
7595ff41e3
commit
993e3c7c89
1 changed files with 4 additions and 4 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -188,24 +188,24 @@ jobs:
|
|||
files: ${{ env.DIST }}.tar.gz
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Prepare Dockerfile
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
|
||||
run: |
|
||||
cp ./Dockerfile ./dist
|
||||
|
||||
- name: Build and push
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./dist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue