Skip to content

Commit

Permalink
MET-5919 Introduce Github Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Apr 12, 2024
1 parent 549b4cd commit 3346bbf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/_deploy-sandbox.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

push-to-kubernetes:
if: |
always()
&& !contains(needs.*.result, 'failure')
&& !cancelled()
needs: [push-docker-image, make-env-file-sandbox]
#if: |
# always()
# && !contains(needs.*.result, 'failure')
# && !cancelled()
#needs: [push-docker-image, make-env-file-sandbox]
uses: ./.github/workflows/deploy-image.yaml
with:
image_name: metis-sandbox-ui
project_dir: sandbox
k8s_context: ${{ github.event.inputs.deploy_environment == 'production' && 'ctxt_PROD' || 'ctxt_TEXT_ACC' }}

secrets: inherit
21 changes: 19 additions & 2 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,30 @@ on:
project_dir:
description: 'project directory'
required: true
default: 'metis'
type: string
#default: 'metis'
k8s_context:
type: string
jobs:
debug:
runs-on: ubuntu-latest
steps:
- run: |
echo 'the k8s_context'
- run: |
echo "${{ k8s_context }}"
- run: |
echo "$k8s_context"
- run: |
echo $k8s_context
deploy-image:

if: 'true' == 'false'

runs-on: ubuntu-latest
steps:
- run: env
#- run: env
- uses: actions/checkout@v4
- name: Get Env File
uses: actions/download-artifact@master
Expand Down

0 comments on commit 3346bbf

Please sign in to comment.