From c8f2eb1185cfcb11d699b7dba6d9eaa27d084201 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 14 Jul 2025 17:23:23 -0400 Subject: [PATCH] ci(docs): make a new docker image for the docs per commit sha (#831) Signed-off-by: Xe Iaso --- .github/workflows/docs-deploy.yml | 3 +++ .github/workflows/docs-test.yml | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 4aade69..e4cdac9 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -36,6 +36,9 @@ jobs: uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0 with: images: ghcr.io/techarohq/anubis/docs + tags: | + type=sha,format=long + type=edge,branch=main - name: Build and push id: build diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index 884f6ae..ceb4dbc 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -2,7 +2,7 @@ name: Docs test build on: pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -24,7 +24,10 @@ jobs: id: meta uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0 with: - images: ghcr.io/${{ github.repository }}/docs + images: ghcr.io/techarohq/anubis/docs + tags: | + type=sha,format=long + type=edge,branch=main - name: Build and push id: build