Joshua Sundance Bailey
commited on
Commit
β’
0ba8ff6
1
Parent(s):
4b5e485
README & flow
Browse files- .github/workflows/check-file-size-limit.yml +14 -0
- .github/workflows/docker-hub.yml +31 -0
- .github/workflows/hf-space.yml +21 -0
- README.md +12 -0
.github/workflows/check-file-size-limit.yml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: 10 MB file size limit
|
2 |
+
on:
|
3 |
+
pull_request:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
jobs:
|
7 |
+
check-file-sizes:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
steps:
|
10 |
+
- name: Check large files
|
11 |
+
uses: ActionsDesk/[email protected]
|
12 |
+
with:
|
13 |
+
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
14 |
+
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
.github/workflows/docker-hub.yml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Push to Docker Hub
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
tags:
|
6 |
+
- '*.*.*'
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
build-and-push-docker:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
steps:
|
12 |
+
- uses: actions/checkout@v2
|
13 |
+
with:
|
14 |
+
fetch-depth: 0
|
15 |
+
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
16 |
+
|
17 |
+
- name: Log in to Docker Hub
|
18 |
+
uses: docker/login-action@v1
|
19 |
+
with:
|
20 |
+
username: joshuasundance
|
21 |
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
22 |
+
|
23 |
+
- name: Build Docker image
|
24 |
+
run: |
|
25 |
+
docker build \
|
26 |
+
-t joshuasundance/geospatial-data-converter:${{ github.ref_name }} \
|
27 |
+
-t joshuasundance/geospatial-data-converter:latest \
|
28 |
+
.
|
29 |
+
|
30 |
+
- name: Push to Docker Hub
|
31 |
+
run: docker push -a joshuasundance/geospatial-data-converter
|
.github/workflows/hf-space.yml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Push to HuggingFace Space
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [main]
|
6 |
+
workflow_dispatch:
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
push-to-huggingface:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
steps:
|
12 |
+
- uses: actions/checkout@v2
|
13 |
+
with:
|
14 |
+
fetch-depth: 0
|
15 |
+
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
16 |
+
|
17 |
+
- name: Push to HuggingFace Space
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: |
|
21 |
+
git push https://joshuasundance:[email protected]/spaces/joshuasundance/geospatial-data-converter main
|
README.md
CHANGED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: geospatial-data-converter
|
3 |
+
emoji: π
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: blue
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
8 |
+
pinned: true
|
9 |
+
tags: [geospatial, streamlit, docker]
|
10 |
+
---
|
11 |
+
|
12 |
+
# geospatial-data-converter
|