-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# This workflow will build a docker image, push it to ghcr.io, and deploy it to an Azure WebApp. | ||
# v1.1.1-rc11 - This tag coordinates the other reusable parts of this workflow. | ||
# v1.1.1-rc12 - This tag coordinates the other reusable parts of this workflow. | ||
# * app-build-docker-image.yml | ||
# * app-deploy-to-azure.yml | ||
# * app-is-deployable.yml | ||
|
@@ -74,25 +74,25 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
repository: 'clearlydefined/operations' | ||
ref: 'v1.1.1-rc11' | ||
ref: 'v1.1.1-rc12' | ||
path: 'operations' | ||
- name: Get version from package-lock.json | ||
id: get_version | ||
shell: bash | ||
run: | | ||
script_log=$(./operations/scripts/app-workflows/get-version.sh \ | ||
${{ inputs.deploy-env }} \ | ||
${{ needs.determine-trigger.outputs.is-release }} \ | ||
${{ github.event.release.tag_name }} \ | ||
${{ github.sha }}) || (echo "$script_log" && exit 1) | ||
"${{ inputs.deploy-env }}" \ | ||
"${{ needs.determine-trigger.outputs.is-release }}" \ | ||
"${{ github.event.release.tag_name }}" \ | ||
"${{ github.sha }}") || (echo "$script_log" && exit 1) | ||
echo -e "---- script log\n$script_log\n----"; \ | ||
version=$(echo "$script_log" | tail -n 1) | ||
echo "VERSION=$version" >> $GITHUB_ENV | ||
build-and-publish-image: | ||
name: Build and publish Docker image | ||
needs: get-version | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc11 | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc12 | ||
secrets: | ||
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} | ||
PRODUCTION_DEPLOYERS: ${{ secrets.PRODUCTION_DEPLOYERS }} | ||
|
@@ -104,7 +104,7 @@ jobs: | |
deploy-primary-app-to-azure: | ||
name: Deploy to primary Azure app | ||
needs: [get-version, build-and-publish-image] | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc11 | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc12 | ||
secrets: | ||
AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
@@ -120,7 +120,7 @@ jobs: | |
name: Deploy to secondary Azure app | ||
if: ${{ inputs.secondary-azure-app-name-postfix != '' }} | ||
needs: [get-version, build-and-publish-image] | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc11 | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc12 | ||
secrets: | ||
AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_SECONDARY_WEBAPP_PUBLISH_PROFILE }} | ||
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ on: | |
|
||
jobs: | ||
check-deployable: | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc11 | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc12 | ||
with: | ||
deploy-env: ${{ inputs.deploy-env }} | ||
secrets: | ||
|
@@ -48,15 +48,15 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
repository: 'clearlydefined/operations' | ||
ref: 'v1.1.1-rc11' | ||
ref: 'v1.1.1-rc12' | ||
path: 'operations' | ||
- name: Determine Docker Image Name | ||
id: determine_image_name | ||
run: | | ||
script_log=$(./operations/scripts/app-workflows/determine-image-name.sh \ | ||
${{ github.repository }} \ | ||
${{ inputs.deploy-env }} \ | ||
${{ inputs.image-tag }}) || (echo "$script_log" && exit 1) | ||
"${{ github.repository }}" \ | ||
"${{ inputs.deploy-env }}" \ | ||
"${{ inputs.image-tag }}") || (echo "$script_log" && exit 1) | ||
echo -e "---- script log\n$script_log\n----"; \ | ||
image_name=$(echo "$script_log" | tail -n 1) | ||
echo "DOCKER_IMAGE_NAME_WITH_TAG=$image_name" >> $GITHUB_ENV | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ on: | |
|
||
jobs: | ||
check-deployable: | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc11 | ||
uses: clearlydefined/operations/.github/workflows/[email protected]rc12 | ||
with: | ||
deploy-env: ${{ inputs.deploy-env }} | ||
secrets: | ||
|
@@ -55,7 +55,7 @@ jobs: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Set DOCKER configs in Azure web app | ||
uses: azure/[email protected]-rc11 | ||
uses: azure/[email protected] | ||
with: | ||
app-name: ${{ inputs.azure-webapp-name }} | ||
app-settings-json: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,13 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
repository: 'clearlydefined/operations' | ||
ref: 'v1.1.1-rc11' | ||
ref: 'v1.1.1-rc12' | ||
path: 'operations' | ||
- id: confirm-dev | ||
shell: bash | ||
run: | | ||
script_log=$(./operations/scripts/app-workflows/confirm-dev.sh \ | ||
${{ inputs.deploy-env }}) || (echo "$script_log" && exit 1) | ||
"${{ inputs.deploy-env }}") || (echo "$script_log" && exit 1) | ||
echo -e "---- script log\n$script_log\n----"; \ | ||
is_dev=$(echo "$script_log" | tail -n 1) | ||
echo "IS_DEV=$is_dev" >> $GITHUB_ENV | ||
|
@@ -47,13 +47,13 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
repository: 'clearlydefined/operations' | ||
ref: 'v1.1.1-rc11' | ||
ref: 'v1.1.1-rc12' | ||
path: 'operations' | ||
|
||
- name: Get organization ID | ||
run: | | ||
script_log=$(./operations/scripts/app-workflows/get-org-id.sh \ | ||
${{ github.repository_owner }}) || (echo "$script_log" && exit 1) | ||
"${{ github.repository_owner }}") || (echo "$script_log" && exit 1) | ||
echo -e "---- script log\n$script_log\n----"; \ | ||
org_id=$(echo "$script_log" | tail -n 1) | ||
echo "ORG_ID=$org_id" >> $GITHUB_ENV | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters