Push image to ghcr.io #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |