Skip to content

Commit

Permalink
Release the tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
keijoraamat committed Aug 9, 2021
1 parent cd8d054 commit d33e393
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.generic
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand All @@ -45,4 +45,5 @@ RUN asdf plugin-add ruby
RUN asdf plugin-add rebar
RUN asdf install

RUN rebar3 release
RUN rebar3 as prod do release tar
RUN tar -xf _build/prod/rel/epp_proxy/epp_proxy-0.1.11.tar.gz -C release

0 comments on commit d33e393

Please sign in to comment.