Update build.yml

This commit is contained in:
0xJacky 2022-08-12 14:21:42 +08:00
parent 04cac7d7f3
commit 5288924681
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0

View file

@ -192,12 +192,12 @@ jobs:
files: ${{ env.DIST }}.tar.gz
- name: Set up Docker Buildx
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
if: 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.GOARCH == 'amd64'
if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
@ -221,13 +221,6 @@ jobs:
uozi/nginx-ui:latest
uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }}
- name: Login to DockerHub Again
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 Demo Dockerfile
if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
run: |