đ´ââ ď¸ Charted new README watersâclearer directions and plunderinâ tips⌠#10
This file contains hidden or 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: "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 |