feat: modify build-and-push workflow to use ubuntu-latest for build and add deployment steps
Some checks failed
Build and Push to Private Registry101 / build (push) Successful in 9s
Build and Push to Private Registry101 / deploy (push) Failing after 5s

This commit is contained in:
stephen schuresko
2025-02-20 12:43:21 -05:00
parent cddfe9efc4
commit 88b326d3f4

View File

@@ -15,7 +15,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest-full
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
@@ -28,6 +28,15 @@ jobs:
name: Build Docker image
- run: docker push kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} # Push the Docker image
name: Push Docker image
deploy:
runs-on: ubuntu-latest-full
needs: build
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v3
- env:
KUBEB64: '${{ secrets.KUBEB64 }}'
run: mkdir -p $HOME/.kube &&echo "$KUBEB64" | base64 -d > $HOME/.kube/config &&