This commit is contained in:
@@ -5,9 +5,6 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
IMAGE_NAME: gitea.umbra.mom/ciaran/football_competitiveness
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -31,7 +28,14 @@ jobs:
|
|||||||
docker buildx inspect --bootstrap
|
docker buildx inspect --bootstrap
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
|
env:
|
||||||
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
|
REGISTRY_NAMESPACE: ${{ secrets.REGISTRY_NAMESPACE }}
|
||||||
run: |
|
run: |
|
||||||
|
set -eu
|
||||||
|
NAMESPACE="${REGISTRY_NAMESPACE:-$REGISTRY_USER}"
|
||||||
|
IMAGE_NAME="gitea.umbra.mom/${NAMESPACE}/football_competitiveness"
|
||||||
|
echo "Publishing image: ${IMAGE_NAME}:latest"
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--pull \
|
--pull \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
|
|||||||
Reference in New Issue
Block a user