mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-19 19:59:13 +03:00
modify release and docker build for me
This commit is contained in:
parent
4684528358
commit
958e68304e
2 changed files with 10 additions and 9 deletions
17
.github/workflows/docker-build.yml
vendored
17
.github/workflows/docker-build.yml
vendored
|
@ -1,11 +1,12 @@
|
||||||
name: Build container images
|
name: Build container images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches:
|
# push:
|
||||||
- "master"
|
# branches:
|
||||||
tags:
|
# - "master"
|
||||||
- "*"
|
# tags:
|
||||||
|
# - "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-image:
|
build-image:
|
||||||
|
@ -26,7 +27,7 @@ jobs:
|
||||||
- name: Prepare image tags
|
- name: Prepare image tags
|
||||||
id: image-tags
|
id: image-tags
|
||||||
run: |
|
run: |
|
||||||
base=ngoduykhanh/wireguard-ui
|
base=rwillert/wireguard-ui
|
||||||
app_version=dev
|
app_version=dev
|
||||||
|
|
||||||
## Set git tag as image tag
|
## Set git tag as image tag
|
||||||
|
@ -82,10 +83,10 @@ jobs:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build # and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: false
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
tags: ${{ steps.image-tags.outputs.container_images }}
|
tags: ${{ steps.image-tags.outputs.container_images }}
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -54,7 +54,7 @@ jobs:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
goversion: "https://dl.google.com/go/go1.21.5.linux-amd64.tar.gz"
|
goversion: "https://dl.google.com/go/go1.23.4.linux-amd64.tar.gz"
|
||||||
pre_command: export CGO_ENABLED=0
|
pre_command: export CGO_ENABLED=0
|
||||||
binary_name: "wireguard-ui"
|
binary_name: "wireguard-ui"
|
||||||
build_flags: -v
|
build_flags: -v
|
||||||
|
|
Loading…
Add table
Reference in a new issue