Build Container #1
This file contains hidden or 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: Build Container | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Container | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Build container | |
run: | | |
podman build -t ghcr.io/${{ github.repository_owner }}/antora:latest \ | |
-f containers/Containerfile | |
- name: Login to container registry | |
run: | | |
podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} | |
- name: Push to registry | |
run: | | |
podman push ghcr.io/${{ github.repository_owner }}/antora:latest | |