Skip to content

v1.1.1

v1.1.1 #3

Workflow file for this run

name: "Build"
on:
workflow_dispatch:
inputs:
tags:
description: "Extra Tags: comma,separated"
required: false
release:
types: [published]
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
packages: write
steps:
- name: "Checkout"
uses: actions/checkout@v5
- name: "Debug CTX github"
if: ${{ !github.event.act }}
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"
- name: "Docker Login"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ vars.GHCR_USER }}
password: ${{ secrets.GHCR_PASS }}
- name: "Setup Buildx"
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: "Generate Version Tags"
id: version
uses: cssnr/update-version-tags-action@v1
with:
prefix: ""
release: true
tags: ${{ inputs.tags }}
- name: "Debug Version Tags"
continue-on-error: true
run: |
echo "github.ref_name: ${{ github.ref_name }}"
echo "inputs.tags: ${{ inputs.tags }}"
echo "steps.version.outputs.tags: ${{ steps.version.outputs.tags }}"
- name: "Generate Docker Tags"
id: tags
uses: cssnr/docker-tags-action@v1
with:
images: "ghcr.io/${{ github.repository }}"
tags: ${{ steps.version.outputs.tags }}
- name: "Debug Docker Tags"
continue-on-error: true
run: |
echo "github.ref_name: ${{ github.ref_name }}"
echo "tags: ${{ steps.tags.outputs.tags }}"
echo "labels: ${{ steps.tags.outputs.labels }}"
echo "annotations: ${{ steps.tags.outputs.annotations }}"
#- name: "Parse Nginx Version"
# uses: madhead/semver-utils@latest
# id: semver
# with:
# version: ${{ github.ref_name }}
#- name: "Debug Nginx Version"
# continue-on-error: true
# run: |
# echo "NGINX_VERSION: ${{ steps.semver.outputs.release }}"
- name: "Build and Push"
uses: docker/build-push-action@v6
with:
context: src
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.tags.outputs.tags }}
labels: ${{ steps.tags.outputs.labels }}
annotations: ${{ steps.tags.outputs.annotations }}
#build-args: |
# VERSION=${{ github.ref_name }}
# NGINX_VERSION=${{ steps.semver.outputs.release }}
- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}