summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml16
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5732360..d9548ab 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,7 +39,7 @@ jobs:
- goos: windows
goarch: amd64
output: sovrabase-windows-amd64.exe
-
+
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -82,13 +82,13 @@ jobs:
- runner: ubuntu-24.04-arm
platform: linux/arm64
arch: arm64
-
+
runs-on: ${{ matrix.runner }}
-
+
permissions:
contents: read
packages: write
-
+
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -134,11 +134,11 @@ jobs:
needs: build-docker
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
-
+
permissions:
contents: read
packages: write
-
+
steps:
- name: Log in to Container Registry
uses: docker/login-action@v3
@@ -152,11 +152,11 @@ jobs:
# Extract branch or tag name
BRANCH=${GITHUB_REF##*/}
SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
-
+
# Create manifest for branch tag
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${BRANCH} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${BRANCH}-${SHA_SHORT}
-
+
# Create manifest for latest tag if on default branch
if [ "${{ github.ref }}" = "refs/heads/main" ] || [ "${{ github.ref }}" = "refs/heads/master" ]; then
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \