Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,26 @@ jobs:
matrix:
image-variant: [prd,dev]

runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Create Dockerfile
run: |
make Dockerfile

- name: Setup Bats and bats libs
id: setup-bats
uses: bats-core/bats-action@3.0.0
with:
bats-install: true
bats-version: 1.10.0
support-install: false
assert-install: false
detik-install: false
file-install: false

- name: Fill GitHub Environment Variables
uses: FranzDiebold/github-env-vars-action@v2

Expand Down Expand Up @@ -50,18 +65,6 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Create Dockerfile
run: |
make Dockerfile

- name: Build "${{ steps.prep.outputs.docker-image-name }}" Docker Image
id: build
uses: docker/build-push-action@v6
Expand All @@ -81,6 +84,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=docker,dest=/tmp/image.tar
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Load Docker Image
run: |
Expand Down
Loading
Loading