-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add action for pinned opentofu version 1.6.2
- Loading branch information
1 parent
0a9b8f3
commit 5505ef9
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish Terragrunt 1.6.2 Image | ||
|
||
on: | ||
push: | ||
paths: | ||
- "terragrunt/**" | ||
- ".github/workflows/publish-terragrunt-image.yml" | ||
branches: | ||
- master | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository_owner }}/terragrunt | ||
|
||
jobs: | ||
build-latest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU #emulation support with QEMU to be able to build against more platforms. | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push the container to GitHub Container Registry using the latest tag | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: terragrunt/Dockerfile | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64 | ||
build-args: | | ||
TOFU_VERSION=1.6.2 | ||
tags: | | ||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:opentofu_v1.6.2 | ||
push: true | ||
provenance: false |