archimage/.forgejo/workflows/build_x86.yaml
Wachtl Enterprises LLC d6413bb6ae Try pushing into repo packages, not org ones
Signed-off-by: Wachtl Enterprises LLC <tyrolyean@escpe.net>
2025-02-27 17:03:10 +01:00

52 lines
1.3 KiB
YAML

name: Build and push docker container
on:
push:
schedule:
- cron: "15 4 * * *"
volumes:
docker_certs:
jobs:
build_and_push:
runs-on: docker
container:
image: docker:dind
options: --privileged --shm-size=2g
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
services:
docker:
image: docker:latest
options: --privileged --shm-size=2g
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
steps:
- name: Setup node
run: |
apk add --update --no-cache nodejs npm
- name: Prepare Registry FQDN
id: registry
run: |
registry=${{ github.server_url }}
registry=${registry##http*://}
echo "$GITHUB_OUTPUT"
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
- name: Login to Forgejo Container Registry
uses: docker/login-action@v3
with:
registry: ${{ steps.registry.outputs.registry }}
username: ${{ vars.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_DEPLOYKEY }}
- name: Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile
no-cache: true
push: true
tags: ${{ steps.registry.outputs.registry }}/${{ github.repository }}:latest