Skip to content

Push image to ghcr.io #42

Push image to ghcr.io

Push image to ghcr.io #42

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 - <<EOF > /etc/systemd/system/docker.service.d/override
[Service]
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --data-root /mnt
- 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