Update version.env to point to 24b PAD release #48
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
name: CI | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
env: | |
AWS_S3_ENDPOINT: ${{ secrets.AWS_S3_ENDPOINT }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set version | |
id: version | |
shell: bash | |
run: | | |
source version.env | |
echo "$VERSION" | |
echo ::set-output name=version::$VERSION | |
- name: Install Minio | |
run: | | |
curl -O https://dl.min.io/client/mc/release/linux-amd64/mc | |
sudo chmod +x mc | |
sudo mv ./mc /usr/bin | |
mc alias set spaces $AWS_S3_ENDPOINT $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4 | |
- name: Build docker image | |
run: | | |
docker build --tag pad-normalize . | |
- name: Build dataset! | |
env: | |
VERSION: ${{ steps.version.outputs.version }} | |
run: | | |
docker run --user $(id -u):$(id -g) \ | |
-v $(pwd)/data:/usr/local/src/scripts/data pad-normalize $VERSION | |
- name: Upload! | |
if: github.ref == 'refs/heads/main' | |
env: | |
VERSION: ${{ steps.version.outputs.version }} | |
run: ./push-to-bucket.sh |