Push image to ghcr.io #44
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: sudo cat /etc/default/docker | |
- run: sudo cat /lib/systemd/system/docker.service | |
- run: sudo systemctl status docker | |
- run: sudo systemctl restart docker | |
- run: sudo systemctl stop docker | |
- run: sudo mkdir -p /etc/systemd/system/docker.service.d | |
- run: sudo ls -l /etc/systemd/system/docker.service.d | |
- run: sudo cat /etc/docker/daemon.json | |
- run: sudo systemctl daemon-reload | |
- run: sudo systemctl restart docker | |
- run: sudo systemctl status docker | |
- run: sudo systemctl show docker |