From e57d2017ce548b78804c1d3bc7acb07d76ba327f Mon Sep 17 00:00:00 2001 From: AtaS Date: Fri, 13 Oct 2023 11:27:06 +0100 Subject: [PATCH] use tagged image --- .github/workflows/build-deploy.yml | 2 +- Makefile | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 65c8123..d760eeb 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest container: - image: ghcr.io/atas/ssg-builder:1.0.0 + image: ghcr.io/atas/ssg-builder:202310131126 steps: - name: Checkout repository diff --git a/Makefile b/Makefile index ba9a86e..1acc73d 100644 --- a/Makefile +++ b/Makefile @@ -7,15 +7,17 @@ build-local-image: docker build system/workflow-image -t atas-ssg-builder:latest +run-local-image: + docker run --rm -it -v $(shell pwd):/github/workspace atas-ssg-builder:latest + +# Updates the GHCR:latest image update-workflow-image: docker login ghcr.io docker buildx build --platform linux/amd64 system/workflow-image -t ghcr.io/atas/ssg-builder:latest docker push ghcr.io/atas/ssg-builder:latest +# Creates a new tag for GHCR:latest image with the current date and time tag-workflow-image: docker tag ghcr.io/atas/ssg-builder:latest ghcr.io/atas/ssg-builder:$(shell date +%Y%m%d%H%M) docker push ghcr.io/atas/ssg-builder:$(shell date +%Y%m%d%H%M) -run-local-image: - docker run --rm -it -v $(shell pwd):/github/workspace atas-ssg-builder:latest -