Skip to content

Commit

Permalink
use tagged image
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 13, 2023
1 parent 8a22602 commit e57d201
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e57d201

Please sign in to comment.