mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-13 14:11:48 +03:00
GHA fixes
This commit is contained in:
parent
5183bb5093
commit
8ac33a0278
4 changed files with 18 additions and 17 deletions
12
.github/workflows/docker-build.yml
vendored
12
.github/workflows/docker-build.yml
vendored
|
@ -9,16 +9,16 @@ on:
|
|||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# set environment
|
||||
- name: Set BUILD_TIME env
|
||||
run: echo "BUILD_TIME=$(date)" >> $GITHUB_ENV
|
||||
|
||||
- name: Set COMMIT env
|
||||
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
- name: Set GIT_COMMIT env
|
||||
run: echo "GIT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
|
||||
- name: Environment printer
|
||||
uses: managedkaos/print-env@v1.0
|
||||
|
@ -88,11 +88,11 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm/v7
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||
tags: ${{ steps.image-tags.outputs.container_images }}
|
||||
build-args: |
|
||||
APP_VERSION=${{ env.APP_VERSION }}
|
||||
BUILD_TIME=${{ env.BUILD_TIME }}
|
||||
COMMIT=${{ env.SHORT_SHA }}
|
||||
GIT_COMMIT=${{ env.GIT_COMMIT }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
|||
jobs:
|
||||
releases-matrix:
|
||||
name: Release Go Binary
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
# build and publish in parallel: linux/386, linux/amd64, darwin/386, darwin/amd64
|
||||
|
@ -24,7 +24,7 @@ jobs:
|
|||
- 7
|
||||
steps:
|
||||
# get the source code
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# set environment
|
||||
- name: Set APP_VERSION env
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue