mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-22 15:20:47 +02:00
build and push base image
This commit is contained in:
parent
e9b235564e
commit
514f324260
2 changed files with 38 additions and 1 deletions
38
.github/workflows/build_base_image.yml
vendored
Normal file
38
.github/workflows/build_base_image.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: build and push image
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .tool-versions
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set image tag
|
||||
run: |
|
||||
IFS=$'\n' read -d '' -r -a lines < .tool-versions
|
||||
erlang_line="${lines[0]}"
|
||||
ruby_line="${lines[1]}"
|
||||
erlang=(${erlang_line// / })
|
||||
ruby=(${ruby_line// / })
|
||||
ERLANG_VER=${erlang[1]}
|
||||
RUBY_VER=${ruby[1]}
|
||||
echo "TAG=internetee/erlang-ruby:'$ERLANG_VER'-'$RUBY_VER'" >> $GITHUB_ENV
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build -t $TAG -f Dockerfile.Erlang-ruby.base .
|
||||
|
||||
- name: Push image to Docker hub
|
||||
env:
|
||||
D_HUB_PASS: ${{ secrets.D_HUB_PASS}}
|
||||
run: |
|
||||
echo $D_HUB_PASS | docker login -u eiskra --password-stdin
|
||||
docker push $TAG
|
|
@ -1,5 +1,4 @@
|
|||
FROM debian:buster-slim
|
||||
# TODO move me to Docker images repo
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
wget \
|
Loading…
Add table
Add a link
Reference in a new issue