Skip to content

Merge dev into stable (#62) #4

Merge dev into stable (#62)

Merge dev into stable (#62) #4

Workflow file for this run

# TODO: Experimental feature, not ready for production
name: 'Container'
on:
workflow_dispatch:
push:
branches: [stable]
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
env:
IMAGE_REGISTRY: 'ghcr.io/${{ github.repository_owner }}'
IMAGE_NAME: 'frontend'
IMAGE_TAG: 'experimental ${{ github.sha }}'
steps:
- uses: actions/checkout@v4
- name: 'Build image'
id: build_image
uses: redhat-actions/buildah-build@v2
with:
containerfiles: ./Containerfile
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_TAG }}
oci: false
- name: 'Lowercase registry'
id: registry_case
uses: ASzc/change-string-case-action@v6
with:
string: ${{ env.IMAGE_REGISTRY }}
- name: 'Push to GHCR'
uses: redhat-actions/push-to-registry@v2
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
registry: ${{ steps.registry_case.outputs.lowercase }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust