Merge pull request #43 from isZumpo/rootless-docker #7
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: Deploy Image to GHCR | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
push-docker-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/[email protected] | |
- name: 'Login to GitHub Container Registry' | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: 'Generate downcase repository name' | |
run: | | |
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | |
- name: 'Build BirdNET-Go Image' | |
run: | | |
docker build . --tag ghcr.io/${REPO}:latest | |
docker push ghcr.io/${REPO}:latest |