fix(ci): enhance compatibility with buildah #146
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 Container | |
on: | |
push: | |
branches-ignore: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- run: | | |
sudo apt-get update | |
sudo apt-get --only-upgrade -y install buildah podman | |
- uses: redhat-actions/buildah-build@v2.13 | |
with: | |
image: localhost/vlmcsd | |
tags: latest | |
containerfiles: ./Dockerfile | |
- 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 |