Skip to content

Commit

Permalink
trying a couple actions
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Sep 20, 2024
1 parent ef10513 commit 587a818
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker Build Main and Deploy to Workshop

on:
workflow_run:
workflows: [ 'Run Tests' ]
branches: [ main ]
types: [ completed ]

jobs:
build-unstable:
name: Build unstable ${{ github.sha }}
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@v1
with:
image_name: ${{ vars.IMAGE_NAME }}
tag: ${{ github.sha }}
dockerfile: Dockerfile
secrets: inherit

deploy-workshop-default:
needs: build-unstable
name: "Deploy to workshop - default"
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1
with:
image: ${{ needs.build-unstable.outputs.image }}
file: environments/default/workshop/app-image.txt
CONFIG_REPO_RW_APP_ID: ${{ vars.CONFIG_REPO_RW_APP_ID }}
CONFIG_REPO_FULL_NAME: ${{ vars.CONFIG_REPO_FULL_NAME }}
secrets: inherit
22 changes: 18 additions & 4 deletions .github/workflows/manual-deploy-workshop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,21 @@ on:
required: true

jobs:
echo:
runs-on: ubuntu-latest
steps:
- run: echo "${{ github.event.inputs.tag }}"
build-unstable:
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@v1
with:
image_name: ${{ vars.IMAGE_NAME }}
tag: ${{ github.event.inputs.tag }}
dockerfile: Dockerfile
secrets: inherit

deploy-workshop-digifeeds:
needs: build-unstable
name: Deploy to workshop - default
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@0654fcf173d868b670f4ac283e4f8fceec6f299c
with:
image: ${{ needs.build-unstable.outputs.image }}
file: environments/digifeeds/workshop/app-image.txt
CONFIG_REPO_RW_APP_ID: ${{ vars.CONFIG_REPO_RW_APP_ID }}
CONFIG_REPO_FULL_NAME: ${{ vars.CONFIG_REPO_FULL_NAME }}
secrets: inherit

0 comments on commit 587a818

Please sign in to comment.