Release the tarball

This commit is contained in:
Keijo Raamat 2021-08-09 14:31:44 +03:00
parent 8c687372c9
commit ecafc5236e
2 changed files with 9 additions and 2 deletions

View file

@ -20,6 +20,12 @@ jobs:
LATEST_GIT_TAG=$(git describe --tags --abbrev=0) LATEST_GIT_TAG=$(git describe --tags --abbrev=0)
echo "TAG=ghcr.io/internetee/epp_proxy:$LATEST_GIT_TAG" >> $GITHUB_ENV 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 - name: Build image
env: env:
KEY_BASE: ${{ secrets.KEY_BASE}} KEY_BASE: ${{ secrets.KEY_BASE}}

View file

@ -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" 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 WORKDIR /opt/erlang/epp_proxy
COPY . . COPY . .
@ -45,4 +45,5 @@ RUN asdf plugin-add ruby
RUN asdf plugin-add rebar RUN asdf plugin-add rebar
RUN asdf install 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