Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Update to SMK 1.2.1 for new Geocoder URL #17

Update to SMK 1.2.1 for new Geocoder URL

Update to SMK 1.2.1 for new Geocoder URL #17

name: smk-composite-action-tests
# used on push for testing / development
# on:
# push:
on:
pull_request:
# debug: remove the dev,putting build action on non existent branches for debug
branches: ['master', 'main']
types: ['opened', 'reopened']
paths-ignore:
- openshift/**
- .vscode/**
- docs/**
- .gitignore
- LICENSE
- open-api.json
- readme.md
- helm-charts
- code_of_conduct.md
jobs:
# This workflow contains a single job called "build"
buildjob:
defaults:
run:
shell: bash
name: 'Build BCDC-SMK container image'
# The type of runner that the job will run on
runs-on: ubuntu-20.04
env:
OPENSHIFT_SERVER_URL: ${{secrets.OPENSHIFT_SERVER_URL}}
OPENSHIFT_TOKEN_DEV: ${{secrets.OPENSHIFT_TOKEN_DEV}}
OPENSHIFT_TOKEN_PROD: ${{secrets.OPENSHIFT_TOKEN_PROD}}
GHCR_USER: ${{ secrets.GHCR_USER }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
DEBUG_DEPLOY: false
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
if: env.OPENSHIFT_SERVER_URL != '' && env.OPENSHIFT_TOKEN_DEV != '' && env.GHCR_USER != '' && env.GHCR_TOKEN != ''
# && env.DEBUG_DEPLOY == 'false'
id: checkout
with:
fetch-depth: 0
- name: Building image
#uses: ./comp-actions/smk-build
uses: bcgov/smk-actions/smk-build@main
#uses: bcgov/smk-actions/smk-deploy@V1
id: buildSMKImage
if: env.OPENSHIFT_SERVER_URL != '' && env.OPENSHIFT_TOKEN_DEV != '' && env.GHCR_USER != '' && env.GHCR_TOKEN != ''
with:
OPENSHIFT_SERVER_URL: ${{ secrets.OPENSHIFT_SERVER_URL }}
OPENSHIFT_TOKEN_DEV: ${{ secrets.OPENSHIFT_TOKEN_DEV }}
GHCR_USER: ${{ secrets.GHCR_USER }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
DOCKER_REGISTRY: 'docker.pkg.github.com'
- name: deploying dev
#uses: ./comp-actions/smk-deploy
uses: bcgov/smk-actions/smk-deploy@main
#uses: bcgov/smk-actions/smk-deploy@V1
id: deploySMKContainer
if: env.OPENSHIFT_SERVER_URL != '' && env.OPENSHIFT_TOKEN_DEV != '' && env.GHCR_USER != '' && env.GHCR_TOKEN != ''
with:
OPENSHIFT_SERVER_URL: ${{ secrets.OPENSHIFT_SERVER_URL }}
OPENSHIFT_TOKEN_DEV: ${{ secrets.OPENSHIFT_TOKEN_DEV }}
GHCR_USER: ${{ secrets.GHCR_USER }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
DOCKER_REGISTRY: 'docker.pkg.github.com'
PR_REVIEWERS: '["michaelpnelson"]'
PR_MENTIONS: '["michaelpnelson"]'