Skip to content

Commit 235b5bb

Browse files
authored
Merge pull request #331 from sentinel-hub/feat/docker-build-action-final
Github action for building and publishing docker images
2 parents 171b2fd + 93217c0 commit 235b5bb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: publish Docker images
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build_and_push_to_registry:
9+
name: Push Docker image to Docker Hub
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
14+
with:
15+
ref: master
16+
17+
- name: Log in to Docker Hub
18+
uses: docker/login-action@v1
19+
with:
20+
username: ${{ secrets.DOCKERHUB_USERNAME }}
21+
password: ${{ secrets.DOCKERHUB_TOKEN }}
22+
23+
- name: Build and push latest tag
24+
uses: docker/build-push-action@v2
25+
with:
26+
file: ./docker/eolearn.dockerfile
27+
push: true
28+
tags: sentinelhub/eolearn:latest
29+
30+
- name: Build and push latest-examples tag
31+
uses: docker/build-push-action@v2
32+
with:
33+
file: ./docker/eolearn-examples.dockerfile
34+
push: true
35+
tags: sentinelhub/eolearn:latest-examples
36+
37+
- name: Update Docker Hub description and readme
38+
uses: peter-evans/dockerhub-description@v2
39+
with:
40+
username: ${{ secrets.DOCKERHUB_USERNAME }}
41+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
42+
repository: sentinelhub/eolearn
43+
short-description: "Official eo-learn Docker images with Jupyter notebook"
44+
readme-filepath: ./README.md

0 commit comments

Comments
 (0)