File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 86
86
tofu-apply :
87
87
name : ' OpenTofu Apply'
88
88
needs : [tofu-plan]
89
- if : github.event_name == 'push' && needs.tofu-plan.outputs.tf-plan-exit-code == 2
89
+ if : ${{ ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.tofu-plan.outputs.tf-plan-exit-code == 2 }}
90
90
runs-on : ubuntu-latest
91
91
environment : ${{ github.ref_name }}
92
92
env :
Original file line number Diff line number Diff line change 1
- az /push.sh
1
+ az /push.sh
2
+ mgmt
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ echo "Context set to namespace: \"$KUBERNETES_NAMESPACE\""
19
19
20
20
DOCKER_POD=$( kubectl get pods -l app=docker -o jsonpath=' {.items[0].metadata.name}' )
21
21
22
- # "workflow-code-exec-env"
23
22
PULL_IMAGE_NAMES=(
24
23
" refinery-ac-exec-env"
25
24
" refinery-lf-exec-env"
@@ -30,7 +29,7 @@ total_images=${#PULL_IMAGE_NAMES[@]}
30
29
31
30
i=0
32
31
for IMAGE_NAME in " ${PULL_IMAGE_NAMES[@]} " ; do
33
- echo " Pulling image: $AZURE_CONTAINER_REGISTRY /$image :$AZURE_IMAGE_TAG "
32
+ echo " Pulling image: $AZURE_CONTAINER_REGISTRY /$IMAGE_NAME :$AZURE_IMAGE_TAG "
34
33
kubectl exec $DOCKER_POD -c docker -- /bin/sh -c " docker pull $AZURE_CONTAINER_REGISTRY /$IMAGE_NAME :$AZURE_IMAGE_TAG "
35
34
i=$(( i+ 1 ))
36
35
echo " ::notice::Pushed $i of $total_images images"
You can’t perform that action at this time.
0 commit comments