Skip to content

chore(deps): update terraform local to v2.5.1 (#80) #217

chore(deps): update terraform local to v2.5.1 (#80)

chore(deps): update terraform local to v2.5.1 (#80) #217

---
name: Build terraform azure container image
"on":
workflow_dispatch:
push:
paths:
- .github/workflows/build-terraform-azure-container-image.yml
- environments/terraform/azure/**
branches:
- main
pull_request:
paths:
- .github/workflows/build-terraform-azure-container-image.yml
- environments/terraform/azure/**
jobs:
build-terraform-azure-container-image:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 1.4.6
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup docker
uses: docker/setup-buildx-action@v2
- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.ref == 'refs/heads/main'
- name: Build container image
run: scripts/build.sh
env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
IMAGE: terraform/azure
REPOSITORY: thecloudsphere/terraform/azure
VERSION: ${{ matrix.version }}
- name: Push container image
run: |
scripts/push.sh
env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
IMAGE: terraform/azure
REPOSITORY: thecloudsphere/terraform/azure
VERSION: ${{ matrix.version }}
if: |
github.repository == 'thecloudsphere/registry' &&
github.ref == 'refs/heads/main'