This commit is contained in:
@@ -5,6 +5,9 @@ on:
|
||||
branches: [ "main" ]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
IMAGE_NAME: gitea.umbra.mom/jay/football-competitiveness
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -28,14 +31,7 @@ jobs:
|
||||
docker buildx inspect --bootstrap
|
||||
|
||||
- name: Build and push image
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_NAMESPACE: ${{ secrets.REGISTRY_NAMESPACE }}
|
||||
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 \
|
||||
--pull \
|
||||
--platform linux/amd64 \
|
||||
|
||||
Reference in New Issue
Block a user