From d33e393eb75297651f858e0332b38d386bdd9579 Mon Sep 17 00:00:00 2001 From: Keijo Raamat Date: Mon, 9 Aug 2021 14:31:44 +0300 Subject: [PATCH] Release the tarball --- .github/workflows/build_image.yml | 6 ++++++ Dockerfile.generic | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index d383ef7..cb54cbc 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -20,6 +20,12 @@ jobs: LATEST_GIT_TAG=$(git describe --tags --abbrev=0) echo "TAG=ghcr.io/internetee/epp_proxy:$LATEST_GIT_TAG" >> $GITHUB_ENV + - name: Set config + env: + SYSCONF: ${{ secrets.SYSCONF }} + run: | + echo $SYSCONF | base64 -di > config/sys.config + - name: Build image env: KEY_BASE: ${{ secrets.KEY_BASE}} diff --git a/Dockerfile.generic b/Dockerfile.generic index abce952..6ee5a86 100644 --- a/Dockerfile.generic +++ b/Dockerfile.generic @@ -34,7 +34,7 @@ RUN git clone https://github.com/asdf-vm/asdf.git "$HOME"/.asdf && \ ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin" -RUN mkdir -p /opt/erlang/epp_proxy +RUN mkdir -p /opt/erlang/epp_proxy/release WORKDIR /opt/erlang/epp_proxy COPY . . @@ -45,4 +45,5 @@ RUN asdf plugin-add ruby RUN asdf plugin-add rebar RUN asdf install -RUN rebar3 release \ No newline at end of file +RUN rebar3 as prod do release tar +RUN tar -xf _build/prod/rel/epp_proxy/epp_proxy-0.1.11.tar.gz -C release \ No newline at end of file