Skip to content

Commit

Permalink
Add action for pinned opentofu version 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrondelez committed Jun 27, 2024
1 parent 0a9b8f3 commit 5505ef9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish-terragrunt_1.6.2-image.yml
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

0 comments on commit 5505ef9

Please sign in to comment.