mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +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
|
files: ${{ env.DIST }}.tar.gz
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- 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
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- 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
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USER }}
|
username: ${{ secrets.DOCKERHUB_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Prepare Dockerfile
|
- 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: |
|
run: |
|
||||||
cp ./Dockerfile ./dist
|
cp ./Dockerfile ./dist
|
||||||
|
|
||||||
- name: Build and push
|
- 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
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./dist
|
context: ./dist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue