Skip to content

Release 1.4.1 hotfix #51

Release 1.4.1 hotfix

Release 1.4.1 hotfix #51

Workflow file for this run

name: Build and Push Images to GHCR
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Load .env into environment
run: |
grep -vE '^\s*#' .env | grep -vE '^\s*$' >> "$GITHUB_ENV"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push merged application image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ github.repository_owner }}/trishul-snmp-suite:latest
ghcr.io/${{ github.repository_owner }}/trishul-snmp-suite:${{ env.APP_VERSION }}