try arg again

This commit is contained in:
Mayel de Borniol 2023-07-31 22:13:20 +01:00
parent bc02d5c5c7
commit 5ef69830ac
3 changed files with 11 additions and 9 deletions

View file

@ -45,8 +45,9 @@ jobs:
# name: Get branch names
# id: branch-name
# uses: tj-actions/branch-names@v4
- name: Set up .env
run: cp .tool-versions.env .env
- name: Set up env
run: export ELIXIR_DOCKER_IMAGE="${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-alpine-${ALPINE_VERSION}" && echo $ELIXIR_DOCKER_IMAGE
#run: cp .tool-versions.env .env
# - id: dotenv
# uses: falti/dotenv-action@v1.0.4
# with:
@ -63,9 +64,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Install tools
run: sudo apt-get install -y cargo && cargo install just && echo "/github/home/.cargo/bin" >> $GITHUB_PATH
-
name: Pre-build prep
run: sudo apt-get install -y cargo && cargo install just && export ELIXIR_DOCKER_IMAGE="${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-alpine-${ALPINE_VERSION}" && echo "/github/home/.cargo/bin" >> $GITHUB_PATH && just rel-prepare
run: just rel-prepare
-
name: Build and push
id: docker_build
@ -82,6 +86,8 @@ jobs:
bonfirenetworks/${{ env.DOCKER_REPO }}:${{steps.version.outputs.current-version}}-${{ env.FLAVOUR }}${{ matrix.tag_extra }}
ghcr.io/bonfire-networks/bonfire-app:latest-${{ env.FLAVOUR }}${{ matrix.tag_extra }}
ghcr.io/bonfire-networks/bonfire-app:${{steps.version.outputs.current-version}}-${{ env.FLAVOUR }}${{ matrix.tag_extra }}
build-args: |
"ALPINE_VERSION=${{ env.ALPINE_VERSION }}"
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View file

@ -1,8 +1,4 @@
# The following are build arguments used to change variable parts of the image, they should be set as env variables.
# The name of your application/release (required)
# The version of the application we are building (required)
ARG ALPINE_VERSION
#### STEP 1 - Build our app
FROM hexpm/elixir:${ELIXIR_DOCKER_IMAGE} as builder

View file

@ -88,7 +88,7 @@ defmodule Bonfire.Umbrella.MixProject do
@default_flavour "classic"
@config [
# note that the flavour will automatically be added where the dash appears
version: "0.9.5-beta.20",
version: "0.9.5-beta.22",
elixir: "~> #{System.get_env("ELIXIR_VERSION", "1.14")}",
default_flavour: @default_flavour,
logo: "assets/static/images/bonfire-icon.png",