Skip to content

Build container workflow #1

Build container workflow

Build container workflow #1

Workflow file for this run

name: Build Image
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
push:
branches:
- main
tags:
- "*"
jobs:
build-sd-notify-adapter:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: sd-notify-adapter
tags: latest ${{ github.sha }} ${{ github.ref_name }}
context: .
containerfiles: |
./Containerfile
- name: Log in to GitHub Container Registry
id: login-ghcr
uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Container Registry
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/shamrocksystems