Skip to content

Commit

Permalink
tests: create a new github action that builds the nginx image as a sm…
Browse files Browse the repository at this point in the history
…oke test
  • Loading branch information
Aron Asor committed Nov 22, 2023
1 parent 05e4bb4 commit 19d1b3e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/nginxtest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Nginx tests

on:
push:
branches:
- unstable
- hotfixes
- master
pull_request:

jobs:
pre_job:
name: Path match check
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ github.token }}
paths: '["docker-compose.yml", "k8s/images/**"]'
docker_build_test:
name: Build and test docker images
runs-on: ubuntu-latest
needs: pre_job
steps:
- uses: actions/checkout@v2
- name: Build docker images
run: docker-compose build studio-nginx

0 comments on commit 19d1b3e

Please sign in to comment.