Merge pull request #140 from epimorphics/preprod #139
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
name: "Build & Publish Docker Image" | |
on: | |
workflow_dispatch: {} | |
push: {} | |
jobs: | |
publish: | |
uses: "epimorphics/github-workflows/.github/workflows/publish.yml@reusable" | |
secrets: | |
# Repostory specific | |
aws_access_key_id: "${{ secrets.BUILD_HMLR_AWS_ACCESS_KEY_ID }}" | |
aws_secret_access_key: "${{ secrets.BUILD_HMLR_AWS_SECRET_ACCESS_KEY }}" | |
# Fixed | |
epi_gpr_access_token: "${{ secrets.HMLR_GPR_ACCESS_TOKEN }}" | |
deploy: | |
needs: "publish" | |
uses: "epimorphics/github-workflows/.github/workflows/deploy.yml@reusable" | |
with: | |
# Repostory specific | |
ansible_playbook: pres.yml | |
ansible_repo: epimorphics/hmlr-ansible-deployment | |
ansible_repo_ref: master | |
host_prefix: hmlr | |
# Fixed | |
deploy: "${{ needs.publish.outputs.deploy }}" | |
key: "${{ needs.publish.outputs.key }}" | |
tag: "${{ needs.publish.outputs.tag }}" | |
secrets: | |
# Repostory specific | |
ansible_vault_password: "${{ secrets.HMLR_ANSIBLE_VAULT_PASSWORD }}" | |
aws_access_key_id: "${{ secrets.BUILD_HMLR_AWS_ACCESS_KEY_ID }}" | |
aws_secret_access_key: "${{ secrets.BUILD_HMLR_AWS_SECRET_ACCESS_KEY }}" | |
ssh_key: "${{ secrets.HMLR_SSH_KEY }}" | |
# Fixed | |
github_pat: "${{ secrets.GIT_REPOSITORY_FULL_ACCESS_PAT }}" |