Files
papi-py/.gitea/workflows/build-and-push.yaml
stephen schuresko 2d78bc1acc
Some checks failed
Build and Push to Private Registry / build (push) Failing after 2m58s
update docker login command to use environment variables for credentials
2025-02-16 16:48:10 -05:00

27 lines
561 B
YAML

# .gitea/actions/build-and-push.yaml
name: Build and Push to Private Registry
on:
push:
branches:
- master
- dev
- qa
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker login kube-reg.fairfaxmedia.net -u $DOCK_REG_USER -p $DOCK_REG_AUTH # Login to private registry
- run: docker build -t kube-reg.fairfaxmedia.net/papi/svc1:${CI_BRANCH} . # Build the Docker image
- run: docker push kube-reg.fairfaxmedia.net/papi/svc1:${CI_BRANCH} # Push the Docker image