Add sprig support to TTPForge Template Rendering #261
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, Publish, and Test Container Images | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/ttpforge | |
jobs: | |
build_test_push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up git repository | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3 | |
- name: Log in to the GitHub Container Registry | |
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and export to Docker (Test Image) | |
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5 | |
with: | |
context: . | |
file: .devcontainer/bash/Dockerfile | |
load: true | |
tags: ${{ env.IMAGE_NAME }}:latest | |
- name: Test | |
run: docker run --rm ${{ env.IMAGE_NAME }}:latest | |
- name: Push image | |
run: docker push ${{ env.IMAGE_NAME }}:latest |