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 -