Skip to content

Build and Push foliant/foliant:full to GitHub registry #45

Build and Push foliant/foliant:full to GitHub registry

Build and Push foliant/foliant:full to GitHub registry #45

name: Build and Push foliant/foliant:full to GitHub registry
on: workflow_dispatch
jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Clean runner
run: |
echo "=== CLEANING DOCKER ==="
docker system prune -a -f --volumes
docker system df
echo -e "\n=== CLEANING APT CACHE ==="
sudo apt-get clean
sudo apt-get autoremove -y
sudo apt-get autoclean
df -h
- name: Push image
run: |
chmod +x build_full.sh
./build_full.sh