chore(deps): update terraform hashicorp/terraform to v1.5.7 - autoclosed #858
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Training and Publish | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- | |
name: Set up npm for linting | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- | |
name: Lint Markdown | |
run: npm ci && npm run mdlint | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Login to Quay.io Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAYIO_USERNAME }} | |
password: ${{ secrets.QUAYIO_TOKEN }} | |
- | |
name: Build azure acend Version | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: | | |
quay.io/acend/terraform-training:pr-${{ github.event.pull_request.number }}-azure-acend | |
- | |
name: Build aws acend Version | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
build-args: | | |
TRAINING_HUGO_ENV=aws | |
push: true | |
tags: | | |
quay.io/acend/terraform-training:pr-${{ github.event.pull_request.number }}-aws-acend | |
- | |
name: Build gcp acend Version | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
build-args: | | |
TRAINING_HUGO_ENV=gcp | |
push: true | |
tags: | | |
quay.io/acend/terraform-training:pr-${{ github.event.pull_request.number }}-gcp-acend | |
- | |
name: 'Install Helm' | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.6.2 | |
- | |
name: Install Kubectl | |
uses: azure/setup-kubectl@v3 | |
with: | |
version: v1.21.2 | |
- | |
name: Create KUBECONFIG | |
env: | |
KUBE_CONFIG: '${{ secrets.KUBECONFIG_K8S_ACEND_TEST }}' | |
run: | | |
mkdir -p $HOME/.kube | |
echo "$KUBE_CONFIG" > $HOME/.kube/config | |
- | |
name: Deploy Helm Release | |
env: | |
TRAINING_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' | |
TRAINING_NAMESPACE: 'acend-terraform-training-test' | |
TRAINING_VERSION: '${{ github.sha }}' | |
run: | | |
helm upgrade $TRAINING_HELM_RELEASE acend-training-chart --install --wait --kubeconfig $HOME/.kube/config --namespace=$TRAINING_NAMESPACE --set=app.name=$HELM_RELEASE --set=app.version=$TRAINING_VERSION --repo=https://acend.github.io/helm-charts/ --values=helm-chart/values.yaml --atomic | |
- | |
name: Redeploy Deployments | |
env: | |
TRAINING_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' | |
TRAINING_HELM_NAME: 'acend-terraform' | |
TRAINING_NAMESPACE: 'acend-terraform-training-test' | |
run: | | |
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-azure-acend --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE | |
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-aws-acend --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE | |
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-gcp-acend --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE | |
- | |
name: Comment PR Environments in PR | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
message: | | |
PR Environments: | |
* azure version <https://terraform-azure-pr-${{ github.event.pull_request.number }}.training.acend.ch> | |
* aws version <https://terraform-aws-pr-${{ github.event.pull_request.number }}.training.acend.ch> | |
* gcp version <https://terraform-gcp-pr-${{ github.event.pull_request.number }}.training.acend.ch> |