update deletion #1
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: Docker Image CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ghcr.io/ottrone/pawtreon:latest | |
- name: Publish Docker image to Github Packages | |
shell: bash | |
env: | |
PAT: ${{ secrets.PAT }} | |
run: | | |
echo $PAT | docker login ghcr.io --username alexottr --password-stdin | |
docker push ghcr.io/ottrone/pawtreon:latest | |
docker logout |