Upgrade Babashka to 1.3.190 and semantic version to 0.8.0 (#96) #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Holy Lambda Pipeline | |
on: [push] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Prepare java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.10.3.849 | |
lein: 2.9.1 | |
- name: Cache Maven | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }} | |
- name: Test the core | |
run: lein with-profile eftest eftest | |
build-images-amd64: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Login to Container Registry | |
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u FieryCod --password-stdin | |
- name: Setup Babashka | |
uses: turtlequeue/[email protected] | |
with: | |
babashka-version: 0.6.1 | |
- name: Build images for amd64 | |
run: | | |
cd docker && bb registry.clj "amd64" "CE" | |
- name: Build images for amd64 DEV | |
run: | | |
cd docker && bb registry.clj "amd64" "DEV" | |
build-images-aarch64: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Login to Container Registry | |
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u FieryCod --password-stdin | |
- name: Setup Babashka | |
uses: turtlequeue/[email protected] | |
with: | |
babashka-version: 0.6.1 | |
- name: Install buildx | |
run: | | |
curl -Ls https://github.com/docker/buildx/releases/download/v0.6.3/buildx-v0.6.3.linux-amd64 > buildx | |
mkdir -p ~/.docker/cli-plugins && mv buildx ~/.docker/cli-plugins/docker-buildx | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
chmod a+x ~/.docker/cli-plugins/docker-buildx | |
docker buildx install | |
- name: Build images for aarch64 CE | |
run: | | |
cd docker && bb registry.clj "aarch64" "CE" | |
- name: Build images for aarch64 DEV | |
run: | | |
cd docker && bb registry.clj "aarch64" "DEV" |