forked from apache/couchdb-erlfdb
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (39 loc) · 1.07 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and push images
on:
workflow_dispatch:
push:
branches:
- 'dev'
- 'main'
defaults:
run:
shell: 'bash -Eeuo pipefail {0}'
jobs:
main:
runs-on: ubuntu-22.04
strategy:
matrix:
otp:
- version: 25
pip_flags: ''
- version: 26
pip_install_flags: '--break-system-packages'
fdb-version: ['7.3.27']
steps:
- uses: actions/checkout@v4
- name: Docker login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/${{ github.repository }}:erlang-${{ matrix.otp.version }}-fdb-${{ matrix.fdb-version }}
file: .devcontainer/Dockerfile
context: .devcontainer
build-args: |
FDB_VERSION=${{ matrix.fdb-version }}
ERLANG_VERSION=${{ matrix.otp.version }}
PIP_INSTALL_FLAGS=${{ matrix.otp.pip_install_flags }}