Skip to content

vanilla 4.4.6 h2 (SNAPSHOT) container for dev node #4

vanilla 4.4.6 h2 (SNAPSHOT) container for dev node

vanilla 4.4.6 h2 (SNAPSHOT) container for dev node #4

Workflow file for this run

name: geocat-docker
on:
push:
branches:
- geocat_4.4.6_vanilla
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: "Checking out"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup Java JDK"
uses: actions/[email protected]
with:
java-version: 11
distribution: temurin
java-package: jdk
cache: maven
- name: "Cache Maven packages"
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "Update maven dependencies"
run: mvn -Pdocker de.qaware.maven:go-offline-maven-plugin:resolve-dependencies
- name: "Increase system limits"
run: sudo sysctl -w vm.max_map_count=262144
- name: "Run tests"
run: |
mvn clean verify -Pit
- name: "Installing"
run: mvn -B clean -DskipTests -Des.host=es -Ddb.type=h2 -D install
- name: "Setting image tag"
id: version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: "Building docker image"
run: mvn -pl web -Pdocker docker:build -DdockerImageName=docker.pkg.github.com/geoadmin/geocat/geocat:${{ steps.version.outputs.VERSION }}-${{ github.run_number }}
- name: "Login to docker.pkg.github.com"
run: docker login -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com
- name: "Push to GitHub Packages"
run: docker push docker.pkg.github.com/geoadmin/geocat/geocat:${{ steps.version.outputs.VERSION }}-${{ github.run_number }}