Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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