From 287ca179bd408ea89c76cae69e5df3e2cae787aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ru=C3=A1n?= Date: Thu, 17 Oct 2024 14:37:33 +0100 Subject: [PATCH 1/3] =?UTF-8?q?[=E2=9A=99=EF=B8=8F=F0=9F=90=B3]=20Added=20?= =?UTF-8?q?image=20build=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6f3aa95 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Build & Publish Docker Image + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +on: + push: + branches: ['main'] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=sha,format=long + type=match,pattern=main + type=raw,value=latest,enable={{is_default_branch}} + flavor: | + latest=auto + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file From e15836116b50ed021e2256d36b6c190a5103b16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ru=C3=A1n?= Date: Wed, 30 Oct 2024 16:22:11 +0000 Subject: [PATCH 2/3] =?UTF-8?q?[=F0=9F=90=B3=E2=9A=99=EF=B8=8F=F0=9F=93=88?= =?UTF-8?q?]=20Improved=20image=20cleanups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-to-vps.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-vps.yaml b/.github/workflows/deploy-to-vps.yaml index d7b98e4..6b94502 100644 --- a/.github/workflows/deploy-to-vps.yaml +++ b/.github/workflows/deploy-to-vps.yaml @@ -42,5 +42,5 @@ jobs: docker compose up -d --build - docker image prune -f + docker image prune -a EOF From 954ed230d82b63baa0aa033e47d92dd1155d18f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ru=C3=A1n?= Date: Tue, 5 Nov 2024 22:32:38 +0000 Subject: [PATCH 3/3] =?UTF-8?q?[=F0=9F=93=88]=20Added=20Plausible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_layouts/base.njk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_layouts/base.njk b/src/_layouts/base.njk index 46587c7..eacf413 100644 --- a/src/_layouts/base.njk +++ b/src/_layouts/base.njk @@ -20,7 +20,9 @@ title: CS++ - + + +