mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
commit
c8b1110c7e
1 changed files with 137 additions and 109 deletions
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
@ -46,7 +46,7 @@ jobs:
|
|||
run: yarn install
|
||||
working-directory: frontend
|
||||
|
||||
- name: Update tranlations
|
||||
- name: Update translations
|
||||
run: yarn gettext:compile
|
||||
working-directory: frontend
|
||||
|
||||
|
@ -186,3 +186,31 @@ jobs:
|
|||
if: github.event_name == 'release'
|
||||
with:
|
||||
files: ${{ env.DIST }}.tar.gz
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
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.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.GOARCH == 'amd64'
|
||||
run: |
|
||||
cp ./Dockerfile ./dist
|
||||
|
||||
- name: Build and push
|
||||
if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./dist
|
||||
file: ./dist/Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: |
|
||||
uozi/nginx-ui:latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue