Skip to content

Commit

Permalink
Remove docker image building and ssg-html-builder-action
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 14, 2023
1 parent 87053bd commit d571ca7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 161 deletions.
4 changes: 2 additions & 2 deletions .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:202310131336
image: ghcr.io/atas/ssg-builder:202310141833

steps:
- name: Checkout repository
Expand All @@ -45,7 +45,7 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Run Ata's SSG HTML Builder
uses: atas/[email protected]
uses: atas/ssg-html-builder-action@2.1
with:
less_file_path: 'assets/styles/style.less'

Expand Down
28 changes: 3 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@

# You would only need to use these if you want to build your own custom builder image.
# Otherwise, by default the workflow uses the pre-built image from ghcr.io/atas/ssg-builder:latest

.PHONY: build-local-image update-workflow-image run-local-image

build-local-image:
docker build system/workflow-image -t atas-ssg-builder:latest

run-local-image:
docker run --rm -it -v $(shell pwd):/workspace atas-ssg-builder:latest
.PHONY: dev-server

dev-server:
docker run --rm -it --entrypoint /workspace/system/bin/dev-server-entrypoint.sh -p 8001:80 \
-v $(shell pwd):/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)

docker run --rm -it --entrypoint /dev-server-entrypoint.sh -p 8001:80 \
-v $(shell pwd):/workspace ghcr.io/atas/ssg-builder:latest
15 changes: 0 additions & 15 deletions system/bin/dev-server-entrypoint.sh

This file was deleted.

36 changes: 0 additions & 36 deletions system/workflow-image/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions system/workflow-image/entrypoint.sh

This file was deleted.

78 changes: 0 additions & 78 deletions system/workflow-image/nginx.conf

This file was deleted.

0 comments on commit d571ca7

Please sign in to comment.