Skip to content

Commit 0c1f66c

Browse files
authored
Update publish-ghcr.yml
1 parent 81d7838 commit 0c1f66c

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/publish-ghcr.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
fail-fast: false
21-
matrix:
22-
image_type: [apache,fpm]
21+
2322
permissions:
2423
packages: write
2524
contents: read
@@ -29,20 +28,7 @@ jobs:
2928
- name: Docker meta
3029
uses: docker/metadata-action@v5
3130
id: meta
32-
with:
33-
# list of Docker images to use as base name for tags
34-
images: |
35-
ghcr.io/librecodecoop/nextcloud-docker
36-
# generate Docker tags based on the following events/attributes
37-
tags: |
38-
type=semver,pattern={{version}},value=${{ inputs.mautic_version }}
39-
type=semver,pattern={{major}}.{{minor}},value=${{ inputs.mautic_version }},enable=${{ inputs.overwrite_latest_minor }}
40-
type=semver,pattern={{major}},value=${{ inputs.mautic_version }},enable=${{ inputs.overwrite_latest_major }}
41-
type=raw,value=latest,enable=${{ inputs.tag_as_latest && matrix.image_type == 'apache' }},suffix=
42-
flavor: |
43-
latest=false
44-
prefix=
45-
suffix=-${{ matrix.image_type }}
31+
4632
- name: Set up QEMU
4733
uses: docker/setup-qemu-action@v3
4834
- name: Set up Docker Buildx
@@ -66,20 +52,16 @@ jobs:
6652
push: false
6753
context: .docker
6854
platforms: linux/amd64,linux/arm64
69-
file: .docker/Dockerfile.${{ matrix.image_type }}
55+
file: .docker/app/Dockerfile
7056
tags: ${{ steps.meta.outputs.tags }}
71-
build-args: |
72-
MAUTIC_VERSION=${{ inputs.mautic_version }}
73-
cache-from: type=local,src=/tmp/.buildx-cache
74-
cache-to: type=local,dest=/tmp/.buildx-cache-new
57+
7558
- name: Push container image
7659
uses: docker/build-push-action@v6
77-
if: github.ref == 'refs/heads/main' || inputs.publish
7860
with:
7961
push: true
8062
context: .docker
8163
platforms: linux/amd64,linux/arm64
82-
file: .docker/Dockerfile.${{ matrix.image_type }}
64+
file: .docker/app/Dockerfile
8365
tags: ${{ steps.meta.outputs.tags }}
8466
cache-from: type=local,src=/tmp/.buildx-cache
8567
cache-to: type=local,dest=/tmp/.buildx-cache-new

0 commit comments

Comments
 (0)