Skip to content

Cross-platform build (#5) #3

Cross-platform build (#5)

Cross-platform build (#5) #3

Workflow file for this run

name: ci
on:
push:
branches: [ 'main' ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Extract branch variable
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Extract revision variable
run: echo "GIT_REVISION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GHCR as ${{ github.actor }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-

Check failure on line 30 in .github/workflows/ci-prod.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci-prod.yml (Line: 30, Col: 8): Unexpected value ''
# Required to mount the Github Workspace to a volume
- name: Checkout
uses: actions/checkout@v4
- name: Build static content
uses: addnab/docker-run-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
image: ghcr.io/wirenboard/website-base-image:initial
options: -v ${{ github.workspace }}:/var/www
run: |
cd /var/www
pnpm install
pnpm run build
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,arm64
tags: |
ghcr.io/wirenboard/website:${{ env.BRANCH }}-${{ env.GIT_REVISION }}
ghcr.io/wirenboard/website:${{ env.BRANCH }}
ghcr.io/wirenboard/website:latest