Skip to content

Commit

Permalink
Merge branch 'release/5.3.8-xenial'
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain committed Jul 12, 2024
2 parents 7909dbf + 9472de1 commit 06e469b
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 52 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build image
run: |
./scripts/update.sh
- name: Run TauDEM to ensure it works
run: |
./scripts/console.sh /opt/taudem/gagewatershed
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: release

on:
push:
tags: "*"

env:
REGISTRY: ghcr.io
IMAGE_NAME: WikiWatershed/taudem

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
attestations: write
id-token: write

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .travis/deploy.sh

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 5.3.8-xenial

- Update Docker image to Ubuntu 16.04 xenial [#4](https://github.com/WikiWatershed/docker-taudem/pull/4)
- Switch CI to GitHub Actions [#3](https://github.com/WikiWatershed/docker-taudem/pull/3)
- Switch Publishing to GitHub Container Registry [#6](https://github.com/WikiWatershed/docker-taudem/pull/6)

## 5.3.8

- Initial release.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ubuntu:14.04
FROM ubuntu:16.04
LABEL org.opencontainers.image.source="https://github.com/WikiWatershed/docker-taudem"

MAINTAINER Azavea <systems@azavea.com>

Expand All @@ -19,7 +20,7 @@ RUN apt-get update && apt-get install -y \
libgeos-dev \
libproj-dev \
libspatialite-dev \
libspatialite5 \
libspatialite7 \
spatialite-bin \
libibnetdisc-dev \
wget
Expand Down Expand Up @@ -49,4 +50,4 @@ RUN wget -qO- https://github.com/dtarb/TauDEM/archive/v${TAUDEM_VERSION}.tar.gz
RUN ln -s /usr/src/TauDEM-${TAUDEM_VERSION} /opt/taudem
ENV PATH /opt/taudem:$PATH

RUN pip install --upgrade pip
RUN pip install --upgrade "pip<21"
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# docker-taudem

[![Travis CI](https://api.travis-ci.org/WikiWatershed/docker-taudem.svg "Build Status on Travis CI")](https://travis-ci.org/WikiWatershed/docker-taudem/)
[![Docker Repository on Quay.io](https://quay.io/repository/wikiwatershed/taudem/status "Docker Repository on Quay.io")](https://quay.io/repository/wikiwatershed/taudem)
[![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/wikiwatershed/docker-taudem/blob/develop/LICENSE)

A Docker image for [TauDEM](http://hydrology.usu.edu/taudem/taudem5/index.html).

##### Getting started
### Quick Start

```
docker run --rm -ti quay.io/wikiwatershed/taudem
```

### Getting started
* Run `./scripts/update.sh`
* Run `./scripts/console.sh`

##### Deployments
### Deployments

``` bash
$ git flow release start 0.1.0
$ vim CHANGELOG.md
$ vim Dockerfile
$ git commit -m "0.1.0"
$ git flow release publish 0.1.0
$ git flow release finish 0.1.0
$ git push --tags
$ git flow release finish -p 0.1.0
```
7 changes: 6 additions & 1 deletion scripts/console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ set -ex

ARGS=$*

docker run --rm -ti docker-taudem $ARGS
if [[ -z $CI ]]; then
docker run --rm -ti docker-taudem $ARGS
else
# Run in non-interactive mode in CI
docker run --rm docker-taudem $ARGS
fi

0 comments on commit 06e469b

Please sign in to comment.