build(ci): generate artifact attestation to GitHub Container Registry #183
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: Build | |
on: | |
push: | |
branches-ignore: ["master"] | |
pull_request: | |
branches: ["master"] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: redhat-actions/[email protected] | |
with: | |
containerfiles: ./Dockerfile | |
image: localhost/vlmcsd | |
extra-args: --squash | |
- run: podman run --rm localhost/vlmcsd:latest -V | |
- name: Run and test containers | |
run: | | |
podman run -d --name vlmcsd localhost/vlmcsd:latest | |
podman exec vlmcsd /usr/bin/vlmcs 0.0.0.0:1688 | |
podman rm -f vlmcsd | |
- run: podman save localhost/vlmcsd:latest > vlmcsd.tar | |
- uses: actions/[email protected] | |
with: | |
path: ./vlmcsd.tar |