From 5bcfa96c1686920201812a772312dd56b28615a9 Mon Sep 17 00:00:00 2001 From: Laura Sofia Heimann Date: Sun, 12 Jan 2025 00:21:53 +0100 Subject: [PATCH] Add ghaction to publish on ghcr.io --- .github/workflows/publish-on-ghcr.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/publish-on-ghcr.yml 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