mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
making job dependant to the build one
This commit is contained in:
parent
a7164a5044
commit
61e8bfb292
1 changed files with 2 additions and 0 deletions
2
.github/workflows/maven-build.yml
vendored
2
.github/workflows/maven-build.yml
vendored
|
@ -69,6 +69,7 @@ jobs:
|
|||
kubectl get nodes
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Automatic deployment
|
||||
|
@ -76,6 +77,7 @@ jobs:
|
|||
git config --global user.name 'Kacper Piasecki'
|
||||
git config --global user.email 'k.r.piasecki2@gmail.com'
|
||||
git config --unset-all http.https://github.com/.extraheader
|
||||
rm -rf .git
|
||||
git clone "https://x-access-token:${{ secrets.K8S_GITHUB_TOKEN }}@github.com/Piasecki-grid/grid-capstone-k8s-manifests.git"
|
||||
cd grid-capstone-k8s-manifests
|
||||
sed -i 's|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:[0-9a-f]\{40\}|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}|g' deployment.yml
|
||||
|
|
Loading…
Reference in a new issue