browsers/.forgejo/workflows/build.yaml
Bruno Carlin b008292a62
Some checks failed
build image / build (push) Failing after 1m9s
freat(workflow): use podman instead of docker
2025-01-05 15:55:11 +01:00

37 lines
896 B
YAML

name: build image
on:
pull_request:
types:
- synchronize
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
build:
runs-on: docker
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install podman
run: |
apt-get update && apt-get install -y --no-install-recommends podman
- name: Login to registry
run: |
echo ${REGISTRY_TOKEN} \
| podman login -u ${REGISTRY_USER} --password-stdin code.bcarlin.net
env:
REGISTRY_USER: ${{ vars.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
- name: Build image
run: |
podman build -t code.bcarlin.net/oci/browsers:latest .
- name: Push image
run: |
podman push code.bcarlin.net/oci/browsers:latest