Skip to content

Fix nil env name conditional #15

Fix nil env name conditional

Fix nil env name conditional #15

Workflow file for this run

name: Publish pkgr images
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- debian:10
- debian:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- el:7
- el:8
- el:9
- sles:12
- sles:15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- 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 Docker image
uses: docker/build-push-action@v5
with:
context: .
file: images/Dockerfile.template
push: true
tags: |
ghcr.io/${{ github.repository }}/${{ matrix.target }}-${{ github.sha }}
ghcr.io/${{ github.repository }}/${{ matrix.target }}-${{ github.ref_name }}
build-args: |
PKGR_VERSION=${{ github.sha }}
TARGET=${{ matrix.target }}