forked from deegree/deegree-ogcapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request deegree#102 from deegree/enableGitHubActionsForDocker
Enable GitHub actions for docker
- Loading branch information
Showing
4 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This file is available under the following license: | ||
# under LGPL 2.1 (LICENSE.TXT) Copyright 2023 Torsten Friebe <[email protected]> | ||
name: Docker Image CI | ||
|
||
on: | ||
schedule: | ||
- cron: "0 1 * * *" | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
build-1_3: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/setup-qemu-action@v2 | ||
- uses: docker/setup-buildx-action@v2 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push v1.3 | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./docker/1.3 | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: deegree/deegree-ogcapi:1.3,deegree/deegree-ogcapi:1.3-SNAPSHOT,deegree/deegree-ogcapi:latest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file is available under the following license: | ||
# under LGPL 2.1 (LICENSE.TXT) Copyright 2023 Torsten Friebe <[email protected]> | ||
name: Java CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
distribution: temurin | ||
cache: 'maven' | ||
- name: Build with Maven | ||
run: mvn -B -q verify --file pom.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is available under the following license: | ||
# under LGPL 2.1 (LICENSE.TXT) Copyright 2020 Torsten Friebe <[email protected]> | ||
FROM tomcat:9.0-jdk11-temurin-jammy | ||
|
||
ENV LANG en_US.UTF-8 | ||
|
||
# add build info labels that can be set on build | ||
# see also https://github.com/opencontainers/image-spec/blob/master/annotations.md | ||
ARG BUILD_DATE | ||
ARG VCS_REF | ||
ARG VCS_URL | ||
LABEL org.opencontainers.image.created=$BUILD_DATE \ | ||
org.opencontainers.image.source=$VCS_URL \ | ||
org.opencontainers.image.revision=$VCS_REF | ||
LABEL maintainer="deegree TMC <[email protected]>" | ||
|
||
# set deegree OAF version | ||
ENV DEEGREE_OAF_VERSION=1.3-SNAPSHOT | ||
|
||
# tomcat port | ||
EXPOSE 8080 | ||
|
||
# add deegree OGCAPI webapp | ||
RUN curl https://repo.deegree.org/repository/public-ogcapi/org/deegree/deegree-ogcapi-webapp-postgres/${DEEGREE_OAF_VERSION}/deegree-ogcapi-webapp-postgres-${DEEGREE_OAF_VERSION}.war -o /usr/local/tomcat/webapps/deegree-ogcapi.war | ||
|
||
# run tomcat | ||
CMD ["catalina.sh", "run"] |
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