feat: update Docker login step in build-and-push workflow for improved security
Some checks failed
Build and Push to Private Registry101 / build (push) Successful in 9s
Build and Push to Private Registry101 / deploy (push) Failing after 4s

This commit is contained in:
stephen schuresko
2025-03-07 14:14:44 -05:00
parent e59924b1fe
commit 6a8cee2f6e

View File

@@ -20,7 +20,7 @@ jobs:
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v3
- run: docker login kube-reg.fairfaxmedia.net -u docker -p ${{ secrets.DOCK_REG_AUTH }} # Login to private registry
- run: docker login kube-reg.fairfaxmedia.net -u ${{ secrets.DOCKER_REG_USER }} -p ${{ secrets.DOCKER_REG_AUTH }} # Login to private registry
name: Login to private registry
- run: docker build -t kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} . # Build the Docker image
name: Build Docker image