Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
mamartinezmejia committed Aug 26, 2022
1 parent 063be4a commit 94fe95e
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 58 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/merge-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Delete old packages
uses: davahome/ghcr-cleanup@v1
with:
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
package: ${{ github.event.repository.name }}
owner: orgs/bcgov
skip_tags: prod-frontend,prod-backend
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 10
TOKEN: ${ secrets.GHCR_TOKEN }
TOKEN: ${ secrets.GITHUB_TOKEN }

- name: Get GWA Command Line
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
- name: Delete old packages
uses: davahome/ghcr-cleanup@v1
with:
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
package: ${{ github.event.repository.name }}
owner: orgs/bcgov
skip_tags: prod-frontend,prod-backend
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:
with:
registry: ghcr.io
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ env.PREV }}-backend
tags: |
prod-backend
Expand All @@ -357,7 +357,7 @@ jobs:
with:
registry: ghcr.io
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ env.PREV }}-frontend
tags: |
prod-frontend
Expand All @@ -376,7 +376,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 10
TOKEN: ${ secrets.GHCR_TOKEN }
TOKEN: ${ secrets.GITHUB_TOKEN }

- name: Get GWA Command Line
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
registry: ghcr.io
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ github.event.number }}-backend
tags: |
test-backend
Expand All @@ -46,7 +46,7 @@ jobs:
with:
registry: ghcr.io
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ github.event.number }}-frontend
tags: |
test-frontend
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Pre-merge update
uses: mshick/add-pr-comment@v1
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
allow-repeats: false
message: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
target: prod-backend
tags: |
${{ github.event.number }}-backend
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
repository: ${{ github.repository }}
token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
target: prod-frontend
tags: |
${{ github.event.number }}-frontend
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Backend Docker image
uses: docker/build-push-action@v2
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Backend Docker image
uses: docker/build-push-action@v2
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
with:
title: Backend coverage report
delete-old-comments: true
github-token: ${{ secrets.GHCR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./backend/coverage/lcov.info

tests-frontend:
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:
with:
title: Frontend coverage report
delete-old-comments: true
github-token: ${{ secrets.GHCR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./frontend/coverage/lcov.info

sonarcloud:
Expand Down Expand Up @@ -381,7 +381,7 @@ jobs:
- name: DEV Deployment update
uses: mshick/add-pr-comment@v1
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
allow-repeats: false
message: |
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ First need to create a new reposiroty in github
- Add required secrets to github repo setting:
- General secrets:
- OC_SERVER: openshift cluster url
- GHCR_TOKEN: personal access token generated through user setting -> developer settings -> personal access token with the right to repo and write/delete package
- Environment secrets:
- Dev: OC_NAMESPACE (dev namespace), OC_TOKEN (get from openshift namespace -> administer view -> user management -> service account -> pipeline token)
- Prod: OC_NAMESPACE (prod namespace), OC_TOKEN
Expand Down
83 changes: 42 additions & 41 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94fe95e

Please sign in to comment.