re-run
All checks were successful
Build & Deploy Costco Grocery List / build (push) Successful in 11s
Build & Deploy Costco Grocery List / verify-images (push) Successful in 2s
Build & Deploy Costco Grocery List / deploy (push) Successful in 8s
Build & Deploy Costco Grocery List / notify (push) Successful in 1s
All checks were successful
Build & Deploy Costco Grocery List / build (push) Successful in 11s
Build & Deploy Costco Grocery List / verify-images (push) Successful in 2s
Build & Deploy Costco Grocery List / deploy (push) Successful in 8s
Build & Deploy Costco Grocery List / notify (push) Successful in 1s
This commit is contained in:
parent
67d681114f
commit
78bbcde97f
@ -70,10 +70,30 @@ jobs:
|
||||
docker push $REGISTRY/frontend:${{ github.sha }}
|
||||
docker push $REGISTRY/frontend:${{ env.IMAGE_TAG }}
|
||||
|
||||
deploy:
|
||||
verify-images:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Docker login
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASS }}" | docker login $REGISTRY \
|
||||
-u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
|
||||
- name: Verify backend image tags exist
|
||||
run: |
|
||||
docker manifest inspect $REGISTRY/backend:${{ github.sha }} >/dev/null
|
||||
docker manifest inspect $REGISTRY/backend:${{ env.IMAGE_TAG }} >/dev/null
|
||||
|
||||
- name: Verify frontend image tags exist
|
||||
run: |
|
||||
docker manifest inspect $REGISTRY/frontend:${{ github.sha }} >/dev/null
|
||||
docker manifest inspect $REGISTRY/frontend:${{ env.IMAGE_TAG }} >/dev/null
|
||||
|
||||
deploy:
|
||||
needs: verify-images
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
@ -118,9 +138,9 @@ jobs:
|
||||
echo "Deployment job finished with status: $STATUS"
|
||||
|
||||
if [ "$STATUS" = "success" ]; then
|
||||
MSG="🚀 Costco App Deployment succeeded: $IMAGE_NAME:${{ github.sha }}"
|
||||
MSG="🚀 Grocery App Deployment succeeded: $IMAGE_NAME:${{ github.sha }}"
|
||||
else
|
||||
MSG="❌ Costco App Deployment FAILED: $IMAGE_NAME:${{ github.sha }}"
|
||||
MSG="❌ Grocery App Deployment FAILED: $IMAGE_NAME:${{ github.sha }}"
|
||||
fi
|
||||
|
||||
curl -d "$MSG" \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user