Update images #92
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 and Publish Docker | |
on: | |
push: | |
tags: | |
- squid-v* | |
- airflow2-v* | |
- litespeed-v* | |
- ansible-almalinux-v* | |
- ansible-rockylinux-v* | |
- ansible-ubuntu-v* | |
- tfaws-v* | |
- tfgcp-v* | |
- nginx-v* | |
- php80-v* | |
- php82-v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REPO_OWNER: ${{ github.repository_owner }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- 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: ${{ env.REPO_OWNER }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Get the version | |
id: get_version | |
run: | | |
VERSION=$(echo ${GITHUB_REF} | sed -e 's#refs/tags/##g' | awk -F'-' '{print $2}') | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/squid-lxc] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/squid-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./proxy/squid | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/squid-lxc:latest,ghcr.io/${{ env.REPO_OWNER }}/squid-lxc:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/ansible-rockylinux] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/ansible-rockylinux-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./ansible/rockylinux | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/ansible-rockylinux:latest,ghcr.io/${{ env.REPO_OWNER }}/ansible-rockylinux:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/ansible-almalinux] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/ansible-almalinux-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./ansible/almalinux | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/ansible-almalinux:latest,ghcr.io/${{ env.REPO_OWNER }}/ansible-almalinux:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/ansible-ubuntu] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/ansible-ubuntu-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./ansible/almalinux | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/ansible-ubuntu:latest,ghcr.io/${{ env.REPO_OWNER }}/ansible-ubuntu:${{ env.VERSION }} | |
- name: "[ghcr.io/[${{ env.REPO_OWNER }}/airflow2] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/airflow2-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./web/airflow | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/airflow2:latest,ghcr.io/${{ env.REPO_OWNER }}/airflow2:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/litespeed] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/litespeed-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./web/litespeed | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/litespeed:latest,ghcr.io/${{ env.REPO_OWNER }}/litespeed:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/tfaws] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/tfaws-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./terraform/aws | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/terraform-aws:latest,ghcr.io/${{ env.REPO_OWNER }}/terraform-aws:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/tfgcp] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/tfgcp-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./terraform/gcp | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/terraform-gcp:latest,ghcr.io/${{ env.REPO_OWNER }}/terraform-gcp:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/nginx] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/nginx-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./web/nginx | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/nginx:latest,ghcr.io/${{ env.REPO_OWNER }}/nginx:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/php8.0] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/php80-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./web/php/8.0 | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/php80:latest,ghcr.io/${{ env.REPO_OWNER }}/php80:${{ env.VERSION }} | |
- name: "[ghcr.io/${{ env.REPO_OWNER }}/php8.2] Push image to GitHub Container Registry" | |
if: contains(github.ref, 'tags/php82-v') | |
uses: docker/build-push-action@v5 | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
BUILDKIT_MULTI_PLATFORM: 1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: ./web/php/8.2 | |
push: true | |
provenance: false | |
tags: ghcr.io/${{ env.REPO_OWNER }}/php82:latest,ghcr.io/${{ env.REPO_OWNER }}/php82:${{ env.VERSION }} | |
- name: Upload Report | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Dockle Report | |
path: dockle-report.json |