mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 09:12:13 -08:00
Compare commits
6 Commits
0ebf09d948
...
78a3f687c9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78a3f687c9 | ||
|
|
3b7b53ff24 | ||
|
|
0c0265e31d | ||
|
|
671b408b11 | ||
|
|
26372556b8 | ||
|
|
63b219d3e3 |
7
.github/workflows/publish-tag.yaml
vendored
7
.github/workflows/publish-tag.yaml
vendored
@ -12,6 +12,7 @@ on:
|
||||
env:
|
||||
WERF_STAGED_DOCKERFILE_VERSION: v2
|
||||
WERF_BUILDAH_MODE: auto
|
||||
WERF_ENV: ${{ (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && 'release' || 'pr' }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -30,7 +31,7 @@ jobs:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: linux/amd64, linux/arm64
|
||||
platforms: linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v8
|
||||
|
||||
- name: Login into ghcr.io
|
||||
shell: bash
|
||||
@ -47,7 +48,7 @@ jobs:
|
||||
source "$(werf ci-env github --as-file)"
|
||||
source <(jq -r '.labels | to_entries | to_entries[] | "export WERF_EXPORT_ADD_LABEL_\(.key)=\"\(.value.key)=\(.value.value)\""' <<< $DOCKER_METADATA_OUTPUT_JSON)
|
||||
|
||||
werf build --repo='' --final-repo='' --secondary-repo "$WERF_REPO"
|
||||
werf build --repo='' --final-repo='' --secondary-repo "$WERF_REPO" --env "$WERF_ENV"
|
||||
|
||||
- name: Build and Push Image
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
@ -55,4 +56,4 @@ jobs:
|
||||
source "$(werf ci-env github --as-file)"
|
||||
source <(jq -r '.labels | to_entries | to_entries[] | "export WERF_EXPORT_ADD_LABEL_\(.key)=\"\(.value.key)=\(.value.value)\""' <<< $DOCKER_METADATA_OUTPUT_JSON)
|
||||
|
||||
werf export --tag ghcr.io/${{ github.repository }}/%image%:${{ github.ref_name }}
|
||||
werf export --tag ghcr.io/${{ github.repository }}/%image%:${{ github.ref_name }} --env "$WERF_ENV"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user