Skip to content

Commit

Permalink
Attempt update to prod flow to have manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
rtshkmr committed Dec 16, 2024
1 parent 014644a commit b3103ad
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ name: Prod in Flight

on:
pull_request:
branches: [ prod ]
branches: [prod]
workflow_dispatch: # Allows manual triggering of the workflow

jobs:
test:
runs-on: ubuntu-22.04 # Use a specific version for stability
name: Build OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} && Run Mix Test
runs-on: ubuntu-22.04
name: Build OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }} && Run Mix Test
services:
postgres:
image: postgres:latest
Expand All @@ -24,20 +25,20 @@ jobs:
--health-retries 5
strategy:
matrix:
otp: ['26.2']
elixir: ['1.16.3']
otp: ["26.2"]
elixir: ["1.16.3"]
steps:
- name: Checkout code
uses: actions/checkout@v4 # Pin to a specific version for stability
uses: actions/checkout@v4

- name: Install dependencies for build
run: sudo apt-get update && sudo apt-get install -y libncurses-dev libtinfo5

- name: Setup Elixir and OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}

- name: Restore dependencies cache
uses: actions/cache@v4
Expand All @@ -58,11 +59,11 @@ jobs:
deploy:
needs: test
name: Build & Deploy to Fly
runs-on: ubuntu-22.04 # Use a specific version for stability
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4 # Pin to a specific version for stability
uses: actions/checkout@v4

- name: Deploy to Fly.io
uses: superfly/flyctl-actions@master
Expand Down

0 comments on commit b3103ad

Please sign in to comment.