diff --git a/.github/workflows/elixir-img-push.yaml b/.github/workflows/elixir-img-push.yaml index 73c981f..699638b 100644 --- a/.github/workflows/elixir-img-push.yaml +++ b/.github/workflows/elixir-img-push.yaml @@ -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 @@ -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: @@ -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 @@ -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: @@ -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