containers/.forgejo/workflows/build-image.yml
Peter Cai 17b18b01bb
Some checks failed
/ build-image (push) Failing after 23s
Fix subuid/subgid before testing podman
2024-02-15 14:50:13 -05:00

34 lines
787 B
YAML

on: [push]
jobs:
build-image:
runs-on: docker
container:
image: node:18-alpine
volumes:
- /var/lib/containers
steps:
- name: Install packages
run: |
apk add git podman
- name: Fixup subuid/subgid
run: |
echo 'root:1:999' > /etc/subuid
echo 'root:1:999' > /etc/subgid
- name: Setup podman
run: |
podman login gitea.angry.im --username PeterCxy --password ${{ secrets.FORGEJO_TOKEN }}
- name: Repository Checkout
uses: https://gitea.angry.im/actions/checkout@v3
with:
submodules: recursive
- name: Confirm Podman works
run: podman run --rm hello-world
- name: Build & Push
run: ./build-image.sh element-web