Compare commits
2 Commits
3efc323d28
...
e10b2f8d1f
| Author | SHA1 | Date | |
|---|---|---|---|
| e10b2f8d1f | |||
| 646e4841bb |
@@ -23,14 +23,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
|
run: echo "::set-output name=version::$(cat VERSION)"
|
||||||
|
|
||||||
# Required for cross-compiling ARM64 images on x86_64 runners
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -39,23 +35,26 @@ jobs:
|
|||||||
username: ninluc
|
username: ninluc
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push multi-arch image
|
- name: Cache Docker layers (registry-backed)
|
||||||
uses: docker/build-push-action@v6
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: buildx-cache-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
buildx-cache-
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
build-args: |
|
build-args: |
|
||||||
VITE_REVERB_APP_KEY=${{ secrets.REVERB_APP_KEY }}
|
VITE_REVERB_APP_KEY=${{ secrets.REVERB_APP_KEY }}
|
||||||
VITE_REVERB_HOST=perceptron.matthiasg.dev
|
VITE_REVERB_HOST=perceptron.matthiasg.dev
|
||||||
VITE_REVERB_PORT=443
|
VITE_REVERB_PORT=443
|
||||||
VITE_REVERB_SCHEME=https
|
VITE_REVERB_SCHEME=https
|
||||||
tags: |
|
tags: git.matthiasg.dev/ninluc/perceptron-viewer/perceptron-viewer:latest, git.matthiasg.dev/ninluc/perceptron-viewer/perceptron-viewer:${{ steps.get_version.outputs.version }}
|
||||||
git.matthiasg.dev/ninluc/perceptron-viewer/perceptron-viewer:latest
|
|
||||||
git.matthiasg.dev/ninluc/perceptron-viewer/perceptron-viewer:${{ steps.get_version.outputs.version }}
|
|
||||||
|
|
||||||
# notify:
|
# notify:
|
||||||
# needs: build
|
# needs: build
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
php-version: '8.4'
|
php-version: '8.4'
|
||||||
coverage: none
|
coverage: none
|
||||||
|
tools: composer:v2
|
||||||
|
env:
|
||||||
|
phpexts: none
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user