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