This commit is contained in:
Michael Trip 2023-03-09 08:13:16 +01:00
parent 92668d8412
commit bf489cb355

View file

@ -15,15 +15,16 @@ on:
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
jobs:
build_mate:
env: env:
# Use docker.io for Docker Hub if empty # Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io REGISTRY: ghcr.io
# github.repository as <account>/<repo> # github.repository as <account>/<repo>
IMAGE_NAME: containdesk-mate IMAGE_NAME: ${{ github.repository }}
jobs:
build_mate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
@ -69,17 +70,12 @@ jobs:
file: ./mate/Dockerfile file: ./mate/Dockerfile
platforms: linux/arm64,linux/amd64 platforms: linux/arm64,linux/amd64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}-mate tags: latest-mate
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
build_xfce: build_xfce:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: containdesk-xfce
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
@ -125,7 +121,7 @@ jobs:
file: ./xfce/Dockerfile file: ./xfce/Dockerfile
platforms: linux/arm64,linux/amd64 platforms: linux/arm64,linux/amd64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}-xfce tags: latest-xfce
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max