From b866a22e5212189ab8f3bedf379482acab10c115 Mon Sep 17 00:00:00 2001 From: Vaughn Woerpel Date: Mon, 1 Jul 2024 23:34:50 -0400 Subject: [PATCH 1/2] patch test --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cabe64a..aa4ac36 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ $ docker run -dit -e WEBHOOK_URL="https://discord.com/api/webhooks/123/456" --na ## Deploying to Kubernetes +Details on the deployment to kubernetes can be found at [vaughnw128/k8s-infra](https://github.com/vaughnw128/k8s-infra) + First, the discord webhook needs to be initialized as a secret: ```shell @@ -83,4 +85,4 @@ Once the secret has been created, the application can be deployed: ```shell $ kubectl apply -f eternalpose.yml -``` \ No newline at end of file +``` From d19d9897c99fc9ae09b456cddcba89b4849ba374 Mon Sep 17 00:00:00 2001 From: Vaughn Woerpel Date: Mon, 1 Jul 2024 23:39:21 -0400 Subject: [PATCH 2/2] Update docker-image.yml --- .github/workflows/docker-image.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 01fafbe..9a19f46 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -9,16 +9,18 @@ jobs: docker: runs-on: ubuntu-latest steps: + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: | + ghcr.io/vaughnw128/eternalpose + tags: | + type=sha + - name: Checkout code uses: actions/checkout@v3 - - name: Get next version - uses: reecetech/version-increment@2024.4.3 - id: version - with: - scheme: semver - increment: patch - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -35,9 +37,7 @@ jobs: context: . file: Dockerfile push: ${{ github.ref == 'refs/heads/master' }} - cache-from: type=registry,ref=ghcr.io/vaughnw128/eternalpose:${{ steps.version.outputs.version }} - cache-to: type=inline - tags: | - ghcr.io/vaughnw128/eternalpose:${{ steps.version.outputs.version }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} build-args: | - git_sha=${{ github.sha }} \ No newline at end of file + git_sha=${{ github.sha }}