Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a GHA to build a docker image #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "builds a addon_urbanisme docker image"
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "checking out"
uses: actions/checkout@v2

- name: "builds the docker image"
run: |
mvn clean package
cd target/docker/urbanisme && docker build -t sigrennesmetropole/addon_urbanisme:latest .
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2

- name: Log in to docker-hub
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: "pushes the docker image"
run: |
docker push sigrennesmetropole/addon_urbanisme:latest
19 changes: 8 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@
</dependencies>
<repositories>
<repository>
<id>georchestra</id>
<name>geOrchestra's artifactory</name>
<url>https://artifactory.georchestra.org/artifactory/maven</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>http://download.osgeo.org/webdav/geotools/</url>
</repository>
<repository>
<id>opengeo</id>
Expand All @@ -227,14 +227,6 @@
<name>Jetty Maven2 Repository</name>
<url>https://oss.sonatype.org/content/groups/jetty/</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray</id>
<name>bintray</name>
<url>http://dl.bintray.com/readytalk/maven</url>
</repository>
<repository>
<id>sonatype</id>
<name>Sonatype Repository</name>
Expand All @@ -250,6 +242,11 @@
<build>
<finalName>urbanisme</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
Loading