Skip to content

Commit 184cb70

Browse files
committed
docker step
1 parent 89e865a commit 184cb70

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

.github/workflows/deployment.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ jobs:
2121
with:
2222
ref: x86_64
2323
path: x86_64
24-
25-
- name: Build Docker image for Jekyll
26-
run: |
27-
docker build -t jekyll-image .
28-
working-directory: main
24+
25+
- name: Build and load Docker image
26+
uses: docker/build-push-action@v3
27+
with:
28+
context: .
29+
file: ./Dockerfile
30+
push: false
31+
load: true
32+
tags: jekyll-image:latest
33+
cache-from: type=gha
34+
cache-to: type=gha
2935

3036
- name: Build Jekyll site for x86
3137
run: |

.github/workflows/pr-deployment.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,23 @@ jobs:
2929
repository: ${{ github.event.pull_request.head.repo.full_name }}
3030
ref: ${{ github.head_ref }}
3131

32+
- name: Build and load Docker image
33+
uses: docker/build-push-action@v3
34+
with:
35+
context: .
36+
file: ./Dockerfile
37+
push: false
38+
load: true
39+
tags: jekyll-image:latest
40+
cache-from: type=gha
41+
cache-to: type=gha
42+
3243
- name: Build Jekyll site
3344
run: |
3445
# GitHub-specific config
3546
echo "url: https://${{ github.repository_owner }}.github.io" >> _config.yaml
3647
echo "baseurl: /hardware-software-interface/${{ env.DEPLOYMENT_ID }}" >> _config.yaml
3748
38-
# Build Docker image for Jekyll
39-
docker build -t jekyll-site .
40-
4149
# Build Jekyll site
4250
docker run --rm \
4351
-v $(pwd):/base/app \

0 commit comments

Comments
 (0)