Skip to content

extend blocked IP ranges #465

extend blocked IP ranges

extend blocked IP ranges #465

Workflow file for this run

name: build and publish docker image
on:
push:
branches: [main, dev]
workflow_dispatch: ~
jobs:
dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: get branch
run: |
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
TAG=${GITHUB_REF##*/}
if [ "$TAG" == "main" ] ; then TAG=latest ; fi
echo "TAG=$TAG" >> $GITHUB_ENV
- name: docker build
run: docker build -t acdhch/aksearch-web:$TAG --label "buildUrl=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" .
- uses: docker/login-action@v1
with:
username: zozlak
password: ${{ secrets.DOCKERHUBTOKEN }}
- name: docker push
run: docker push acdhch/aksearch-web:$TAG
- name: redeploy
run: |
NMSP=oeaw-resources-dev
if [ "$TAG" == "latest" ] ; then NMSP=oeaw-resources ; fi
echo "https://rancher.acdh-dev.oeaw.ac.at/v3/project/c-m-6hwgqq2g:p-nlsz2/workload/deployment:$NMSP:web?action=redeploy"
curl -i -X POST -H "Authorization: Bearer ${{ secrets.RANCHER_TOKEN }}" "https://rancher.acdh-dev.oeaw.ac.at/v3/project/c-m-6hwgqq2g:p-nlsz2/workload/deployment:$NMSP:web?action=redeploy"