Files
papi-py/.gitea/workflows/build-and-push.yaml
stephen schuresko 253274363d
Some checks failed
Build and Push to Private Registry / build (push) Failing after 4s
fix: update docker login command to use secrets for authentication
2025-02-16 17:09:07 -05:00

26 lines
574 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 docker -p ${{ secrets.DOCK_REG_AUTH }} # Login to private registry
- run: docker build -t kube-reg.fairfaxmedia.net/papi/svc1:${{ gitea.ref }} . # Build the Docker image
- run: docker push kube-reg.fairfaxmedia.net/papi/svc1:${{ gitea.ref }} # Push the Docker image