Skip to content

🏴‍☠️ Charted new README waters—clearer directions and plunderin’ tips… #10

🏴‍☠️ Charted new README waters—clearer directions and plunderin’ tips…

🏴‍☠️ Charted new README waters—clearer directions and plunderin’ tips… #10

name: "Heave to the Registry ⚓ "
on:
push:
branches:
- main
paths:
- 'docker/**'
- 'Makefile'
- 'example.env'
- '.github/workflows/build-and-push.yml'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Docker Compose
uses: ndeloof/install-compose-action@v0.0.1
- name: Prepare environment file
run: cp example.env .env
- name: Build and push Docker image
run: |
make build
docker tag scottgigawatt/privateerr:latest ghcr.io/${{ github.repository_owner }}/privateerr:latest
docker push ghcr.io/${{ github.repository_owner }}/privateerr:latest