diff --git a/.github/workflows/publish-on-ghcr.yml b/.github/workflows/publish-on-ghcr.yml new file mode 100644 index 0000000..cc95bee --- /dev/null +++ b/.github/workflows/publish-on-ghcr.yml @@ -0,0 +1,14 @@ +name: Build Docker and release on GHCR +on: + push + +jobs: + build_and_publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and push the image + run : | + docker login --username laurawebdev --password ${{ secrets.GH_PAT }} ghcr.io + docker build . --tag ghcr.io/laurawebdev/khid-docker:latest + docker push ghcr.io/laurawebdev/khid-docker:latest \ No newline at end of file