Skip to content

Update to Erlang 26.2.3 and Elixir 1.16.2 #35

Update to Erlang 26.2.3 and Elixir 1.16.2

Update to Erlang 26.2.3 and Elixir 1.16.2 #35

Workflow file for this run

name: Build/Publish Image
on:
push:
branches:
- master
paths:
- 'Makefile'
- 'Dockerfile'
- 'VERSION'
- '.github/workflows/ci.yml'
pull_request:
paths:
- 'Makefile'
- 'Dockerfile'
- 'VERSION'
- '.github/workflows/ci.yml'
env:
BUILDX_CACHE_DIR: /tmp/buildx
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Version Info
id: versions
run: |
elixir_version="$(cat VERSION | grep elixir | cut -d ' ' -f2)"
erlang_version="$(cat VERSION | grep erlang | cut -d ' ' -f2)"
echo "::set-output name=elixir_version::${elixir_version}"
echo "::set-output name=erlang_version::${erlang_version}"
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker Layers
uses: actions/cache@v2
id: cache
with:
path: /tmp/buildx
key: buildx-elixir${{ steps.versions.outputs.elixir_version }}-erlang${{ steps.versions.outputs.erlang_version }}
restore-keys: |
buildx-elixir${{ steps.versions.outputs.elixir_version }}-erlang
buildx-elixir${{ steps.versions.outputs.elixir_version }}-
buildx-elixir
- name: Build/Validate Image
env:
VERSION: ${{ steps.versions.outputs.elixir_version }}
ERLANG_VERSION: ${{ steps.versions.outputs.erlang_version }}
run: make validate
- name: Login
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish Image
if: ${{ github.event_name == 'push' }}
env:
VERSION: ${{ steps.versions.outputs.elixir_version }}
ERLANG_VERSION: ${{ steps.versions.outputs.erlang_version }}
run: make release