rssmix/.forgejo/workflows/build.yaml
mr-boneman 82cf6ec7a4
All checks were successful
/ build (push) Successful in 2m5s
update workflow to f41
2024-12-05 20:16:06 +01:00

25 lines
959 B
YAML

on:
push:
jobs:
build:
runs-on: docker
container:
image: quay.io/fedora/fedora-minimal:41
steps:
- run: dnf5 install -y nodejs tar xz git buildah podman skopeo just
- uses: https://code.forgejo.org/actions/checkout@v4
- name: build image
run: just build "--storage-driver=vfs"
- name: export image
run: podman --storage-driver=vfs save rssmix:latest -o image.tar
- name: set registry env
run: |
set -euxo pipefail
echo "DOCKER_REGISTRY=$(echo ${{ GITHUB.SERVER_URL }} | sed -E 's/^\s*.*:\/\///g' )" >> $GITHUB_ENV
- run: echo DOCKER_REGISTRY=$DOCKER_REGISTRY
- name: log into docker
run: skopeo login -u ${{ GITHUB.REPOSITORY_OWNER }} -p ${{ SECRETS.PACKAGE_PUSH_KEY }} $DOCKER_REGISTRY
- name: upload image
run: skopeo copy docker-archive:image.tar docker://$DOCKER_REGISTRY/${{ GITHUB.REPOSITORY_OWNER }}/rssmix:latest