Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment configuration base-elixir-phoenix for polar #1

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

opsmaru[bot]
Copy link
Contributor

@opsmaru opsmaru bot commented Feb 20, 2024

Configuration for PAKman github action. This configuration will deploy your application automatically when you push to the branch set in the file. You can modify the branch list as you see fit.

If you want to configure conditional deployment you can also switch the following block:

on:
  push:
    branches:
      - main
      - master
      - develop

to the following:

on:
  workflow_run:
    workflows: ["CI"]
    branches: [main, master, develop]
    types:
      - completed

This assumes your CI workflow is named 'CI' in your github action. You can then simply add the if under the job.

jobs:
  build:
    if: ${{ github.event.workflow_run.conclusion == 'success' }}

You will also need to switch the following:

  • From ${{ github.ref }} to ${{ github.event.workflow_run.head_branch }}.
  • From ${{ github.sha }} to ${{ github.event.workflow_run.head_sha }}.

@zacksiri zacksiri merged commit 4138e77 into develop Feb 20, 2024
@zacksiri zacksiri deleted the insterra/packs/14/1708403952 branch February 26, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant