Skip to content

Commit

Permalink
change in formate of elixir version in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Gourav committed Mar 8, 2024
1 parent e97c6c3 commit b660fbd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/elixir-img-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ on:
path-docker-file:
required: true
type: string
elixir_version:
type: string
required: false
default: '1.13.4'
otp_version:
type: string
required: false
default: '24.0'
secrets:
DOCKER_HUB_USERNAME:
required: true
Expand All @@ -32,10 +40,7 @@ jobs:
MIX_ENV: prod
if: startsWith(github.event.ref, 'refs/tags/')
runs-on: ubuntu-20.04
strategy:
matrix:
elixir: ['1.13.4']
otp: ['24.0']

outputs:
app-version: ${{ steps.pushing-img.outputs.app-version }}
steps:
Expand All @@ -50,8 +55,8 @@ jobs:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
otp-version: ${{matrix.otp}} # Define the OTP version [required]
elixir-version: ${{ inputs.elixir_version }} # Define the elixir version [required]
otp-version: ${{ inputs.otp_version }} # Define the OTP version [required]
experimental-otp: true
- name: Retrieve Mix dependencies Cache
uses: actions/cache@v3
Expand Down Expand Up @@ -92,10 +97,7 @@ jobs:
env:
MIX_ENV: dev
runs-on: ubuntu-20.04
strategy:
matrix:
elixir: ['1.13.4']
otp: ['24.0']

outputs:
app-version: ${{ steps.pushing-img.outputs.app-version }}
steps:
Expand All @@ -108,8 +110,8 @@ jobs:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
otp-version: ${{matrix.otp}} # Define the OTP version [required]
elixir-version: ${{ inputs.elixir_version }} # Define the elixir version [required]
otp-version: ${{ inputs.otp_version }} # Define the OTP version [required]
experimental-otp: true
- name: Retrieve Mix dependencies Cache
uses: actions/cache@v3
Expand Down

0 comments on commit b660fbd

Please sign in to comment.