ad build stage

This commit is contained in:
stephen schuresko
2025-02-16 16:20:18 -05:00
parent b987d89182
commit 4825bcd825

View File

@@ -0,0 +1,26 @@
# .gitea/actions/build-and-push.yaml
name: Build and Push to Private Registry
on:
push:
branches:
- main
- dev
- qa
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker login kube-reg.fairfaxmedia.net # 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