Skip to content

Commit

Permalink
Add job to test Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel-s committed Dec 16, 2024
1 parent 312487c commit 7de81cc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# .github/workflows/test-deploy.yml
name: Test deployment
name: Test build

on:
pull_request:
branches:
- main

jobs:
test-deploy:
name: Test deployment
test-yarn-build:
name: Test yarn build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -23,3 +22,16 @@ jobs:
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build

test-docker-build:
name: Test Docker build
runs-on: ubuntu-latest
steps:
- name: Build image with Docker
run: |-
docker build \
--tag "$IMAGE:$GITHUB_SHA" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.

0 comments on commit 7de81cc

Please sign in to comment.