Skip to content

Commit

Permalink
add suffixes in build
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Oct 23, 2024
1 parent eab71a2 commit d59a6f4
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,52 @@ jobs:
context: neo4j
file: neo4j/Dockerfile
target: community
suffix:
- name: backend
context: backend
file: backend/Dockerfile
- name: backend-unbranded
target: base
suffix: base
- name: backend
context: backend
file: backend/Dockerfile
target: code
suffix: code
- name: backend
context: backend
file: backend/Dockerfile
target: production
suffix:
- name: webapp
context: webapp
file: webapp/Dockerfile
target: production
- name: webapp-unbranded
target: base
suffix: base
- name: webapp
context: webapp
file: webapp/Dockerfile
target: code
suffix: code
- name: webapp
context: webapp
file: webapp/Dockerfile
target: production
suffix:
- name: maintenance
context: webapp
file: webapp/Dockerfile.maintenance
target: production
- name: maintenance-unbranded
target: base
suffix: base
- name: maintenance
context: webapp
file: webapp/Dockerfile.maintenance
target: code
suffix: code
- name: maintenance
context: webapp
file: webapp/Dockerfile.maintenance
target: production
suffix:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
Expand All @@ -59,13 +82,13 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
type=sha
type=schedule,suffix=${{ matrix.app.suffix }}
type=semver,pattern={{version}},suffix=${{ matrix.app.suffix }}
type=semver,pattern={{major}}.{{minor}},suffix=${{ matrix.app.suffix }}
type=semver,pattern={{major}},suffix=${{ matrix.app.suffix }}
type=ref,event=branch,suffix=${{ matrix.app.suffix }}
type=ref,event=pr,suffix=${{ matrix.app.suffix }}
type=sha,suffix=${{ matrix.app.suffix }}
- name: Build and push Docker images
id: push
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
Expand Down

0 comments on commit d59a6f4

Please sign in to comment.