Compare commits

...

6 Commits

Author SHA1 Message Date
dependabot[bot]
78a3f687c9
Merge 4db4f5aaec8061e156343477a2df8e9d97c8901c into 3b7b53ff24d4e64edbaa6050621088d4db75a7c4 2025-03-10 16:33:11 +05:00
Maksim Nabokikh
3b7b53ff24
Setup QEMU for more archs 2025-03-04 21:31:20 +01:00
Maksim Nabokikh
0c0265e31d
Use .Env in werf.yaml 2025-03-04 21:29:02 +01:00
Maksim Nabokikh
671b408b11
Fix werf env 2025-03-04 21:26:09 +01:00
Maksim Nabokikh
26372556b8
Release multiarch build fix (#335)
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
2025-03-04 21:22:30 +01:00
Maksim Nabokikh
63b219d3e3
Release multiarch build (#334)
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
2025-03-04 21:15:03 +01:00
2 changed files with 9 additions and 5 deletions

View File

@ -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"

View File

@ -3,8 +3,11 @@ configVersion: 1
build:
platform:
- linux/amd64
# TODO(nabokihms): build multiplatform images only for the master branch
# - linux/arm64
{{- if eq .Env "release" }}
- linux/arm64
- linux/arm/v7
- linux/arm/v8
{{- end }}
staged: true
---
image: ovpn-admin