Skip to content

Commit bca05d2

Browse files
committed
ci: run tf apply on workflow_dispatch
1 parent 10cc5aa commit bca05d2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/tf_plan_apply.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
tofu-apply:
8787
name: 'OpenTofu Apply'
8888
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 }}
9090
runs-on: ubuntu-latest
9191
environment: ${{ github.ref_name }}
9292
env:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
az/push.sh
1+
az/push.sh
2+
mgmt

k8s/exec_env_pull.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ echo "Context set to namespace: \"$KUBERNETES_NAMESPACE\""
1919

2020
DOCKER_POD=$(kubectl get pods -l app=docker -o jsonpath='{.items[0].metadata.name}')
2121

22-
# "workflow-code-exec-env"
2322
PULL_IMAGE_NAMES=(
2423
"refinery-ac-exec-env"
2524
"refinery-lf-exec-env"
@@ -30,7 +29,7 @@ total_images=${#PULL_IMAGE_NAMES[@]}
3029

3130
i=0
3231
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"
3433
kubectl exec $DOCKER_POD -c docker -- /bin/sh -c "docker pull $AZURE_CONTAINER_REGISTRY/$IMAGE_NAME:$AZURE_IMAGE_TAG"
3534
i=$((i+1))
3635
echo "::notice::Pushed $i of $total_images images"

0 commit comments

Comments
 (0)