Improve formatting for help text #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Grawkit Play Container Build | |
on: | |
push: | |
paths: | |
- 'grawkit' | |
- 'play/**' | |
env: | |
CONTAINER_NAME: ${{ github.repository_owner }}/grawkit-play | |
CONTAINER_TAG: latest | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Container Build | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
apt-get update -y | |
apt-get install -y podman buildah | |
- name: Build container image | |
id: build-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.CONTAINER_NAME }} | |
tags: ${{ env.CONTAINER_TAG }} | |
containerfiles: play/Containerfile | |
- name: Push to container registry | |
id: push-to-registry | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
registry: ${{ vars.CONTAINER_REGISTRY_URL }} | |
image: ${{ steps.build-image.outputs.image }} | |
tags: ${{ steps.build-image.outputs.tags }} | |
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} | |
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} | |
- name: Print container image URL | |
run: echo "Image pushed to ${{ steps.push-to-registry.outputs.registry-paths }}" |