split images, pull more env vars out
This commit is contained in:
parent
6ea4fa0026
commit
804a5229ab
10 changed files with 78 additions and 46 deletions
13
.github/workflows/publish-docker.yaml
vendored
13
.github/workflows/publish-docker.yaml
vendored
|
|
@ -6,11 +6,19 @@ on:
|
|||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
IMAGE_NAME_OWNER: ${{ github.repository_owner }}
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- dockerfile: ./pathfinder.Dockerfile
|
||||
image_name: pathfinder
|
||||
- dockerfile: ./pf-websocket.Dockerfile
|
||||
image_name: pf-websocket
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
@ -29,11 +37,12 @@ jobs:
|
|||
id: meta
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_OWNER }}/${{ matrix.image_name }}
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
with:
|
||||
context: .
|
||||
file: ${{ matrix.dockerfile }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue