Skip to content

Commit

Permalink
Merge pull request #238 from bcgov/feature/pipeline-release-2
Browse files Browse the repository at this point in the history
Feature/pipeline release 2
  • Loading branch information
amlanc1 authored Mar 17, 2023
2 parents 01d2378 + ea1b8e3 commit c0ebef1
Show file tree
Hide file tree
Showing 36 changed files with 502 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ on:
jobs:
build:
runs-on: ubuntu-latest
# if: ${{ !(
# github.event.pull_request.head.ref =~ '^hotfixrelease/' ||
# github.event.pull_request.head.ref =~ '^hotfix/' ||
# github.event.pull_request.head.ref =~ '^dependabot/'||
# github.event.pull_request.head.ref =~ '^feature/'
# )}}
# if: ${{ github.event.pull_request.head.ref =~ '^release/' }}
if: startsWith(github.event.pull_request.head.ref, 'release/')
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -49,6 +57,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: ${{ inputs.DOCKER_IMAGE_NAME }}=v
fetch_all_tags: true

- name: Build
uses: docker/build-push-action@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/form_handler-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: form_handler-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/form_handler/**
- .github/workflows/form_handler-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/form_handler-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
name: form_handler-ci

# on:
# push:
# branches_ignore:
# - master
# paths:
# - python/*.py
# - python/common/**
# - python/form_handler/**
# - .github/workflows/form_handler-ci.yml
# - trigger.txt

on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/form_handler/**
- .github/workflows/form_handler-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/geocodersvc-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: geocodersvc-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/geocodersvc/**
- .github/workflows/geocodersvc-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/geocodersvc-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: geocodersvc-ci

on:
# push:
# branches_ignore:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/geocodersvc/**
- .github/workflows/geocodersvc-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ingestor-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: ingestor-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/ingestor/**
- .github/workflows/ingestor-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ingestor-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: ingestor-ci

on:
# push:
# branches_ignore:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/ingestor/**
- .github/workflows/ingestor-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/paybc-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: paybc-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/paybc_api/**
- .github/workflows/paybc-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/paybc-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: paybc-ci
on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/paybc_api/**
- .github/workflows/paybc-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/prohibition_web_app-cd.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: prohibition_web_app-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- web_app/**
- .github/workflows/prohibition_web_app-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prohibition_web_app-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: prohibition_web_app-ci
on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- web_app/**
- .github/workflows/prohibition_web_app-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/prohibition_web_svc-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: prohibition_web_svc-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/prohibition_web_svc/**
- .github/workflows/prohibition_web_svc-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prohibition_web_svc-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: prohibition_web_svc-ci
on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/prohibition_web_svc/**
- .github/workflows/prohibition_web_svc-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/validator-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: validator-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/validator/**
- .github/workflows/validator-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: validator-ci
on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/validator/**
- .github/workflows/validator-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/writer-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: writer-cd

on:
push:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
paths:
- python/*.py
- python/common/**
- python/writer/**
- .github/workflows/writer-cd.yml
- trigger.txt

jobs:
CD:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/writer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: writer-ci
on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
paths:
- python/*.py
- python/common/**
- python/writer/**
- .github/workflows/writer-ci.yml
- trigger.txt

jobs:
CI:
Expand Down
21 changes: 21 additions & 0 deletions web_app/Dockerfile_new
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# FROM registry.access.redhat.com/ubi8/nodejs-16-minimal:latest AS build
FROM node:16 AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build





FROM registry.access.redhat.com/ubi8/nginx-118:latest
ARG VERSION
ENV VERSION=$VERSION
COPY nginx.conf /app/nginx.conf
WORKDIR /app
COPY --from=build /app/dist /app/dist
# COPY dist /app/dist

CMD ["nginx", "-c", "/app/nginx.conf", "-g", "daemon off;"]
Loading

0 comments on commit c0ebef1

Please sign in to comment.