Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Build YourAtomic
- on:
- workflow_dispatch: # Enables you to run the action manually from within the Actions UI
- schedule:
- - cron: "0 0 * * *" # Automatically runs this action at midnight local time.
- jobs:
- build-and-push:
- runs-on: docker
- container:
- image: quay.io/podman/stable:latest
- # Disables SELinux for the job and injects the host's engine socket and auth token
- options: --privileged --user 0:0 --security-opt label=disable -v /run/podman/podman.sock:/run/podman/podman.sock -v /root/.config/containers/auth.json:/root/.config/containers/auth.json:ro
- # Tells the container's internal Podman CLI to forward commands to the host's engine
- env:
- CONTAINER_HOST: unix:///run/podman/podman.sock
- GIT_SSL_NO_VERIFY: "true"
- steps:
- - name: Prepare Container Environment
- run: dnf install -y nodejs git
- - name: Checkout Repository
- uses: actions/checkout@v4
- - name: Build YourAtomic OCI Layers
- run: |
- echo "Compiling and assembling OCI layers for 'latest' using host cache..."
- podman build --pull=always -t your.forgejo.local/you/youratomic:latest .
- - name: Push to Forgejo Registry
- run: |
- echo "Pushing YourAtomic 'latest' to Forgejo registry..."
- podman push --authfile /root/.config/containers/auth.json your.forgejo.local/you/youratomic:latest
Advertisement
Add Comment
Please, Sign In to add comment