Merge GitHub dev into GitLab dev
This commit is contained in:
@@ -2,7 +2,7 @@ name: Docker build & push (reusable)
|
||||
|
||||
# Reusable workflow that builds the three image targets defined in
|
||||
# deploy/docker/Dockerfile (backend, worker, frontend) and optionally pushes
|
||||
# them to the selected registries under the 3252a8/ namespace.
|
||||
# them to the selected registries under the repository owner's namespace.
|
||||
#
|
||||
# Called by:
|
||||
# - docker-dev.yml (tag_mode: dev, push: true) on pushes to dev
|
||||
@@ -88,13 +88,19 @@ jobs:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Resolve image namespace
|
||||
id: image_namespace
|
||||
run: |
|
||||
owner="${{ github.repository_owner }}"
|
||||
echo "owner=${owner,,}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
name=3252a8/${{ matrix.image }},enable=${{ inputs.publish_dockerhub }}
|
||||
name=ghcr.io/3252a8/${{ matrix.image }},enable=true
|
||||
name=${{ steps.image_namespace.outputs.owner }}/${{ matrix.image }},enable=${{ inputs.publish_dockerhub }}
|
||||
name=ghcr.io/${{ steps.image_namespace.outputs.owner }}/${{ matrix.image }},enable=true
|
||||
tags: |
|
||||
type=raw,value=dev,enable=${{ inputs.tag_mode == 'dev' }}
|
||||
type=raw,value=latest,enable=${{ inputs.tag_mode == 'release' }}
|
||||
|
||||
Reference in New Issue
Block a user