Skip to content

Push image to ghcr.io #45

Push image to ghcr.io

Push image to ghcr.io #45

name: Push image to ghcr.io
on:
push:
tags: ["v*"]
workflow_dispatch:
permissions:
packages: write
contents: read # This is required for actions/checkout
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- run: df -h
- run: jq '."data-root" = "/mnt/docker"' < /etc/docker/daemon.json | tee daemon.json.tmp
- run: sudo mkdir -p /mnt/docker
- run: sudo cp daemon.json.tmp /etc/docker/daemon.json
- run: sudo systemctl restart docker
- run: sudo du -h /mnt/docker