Skip to content

added life checker url #8

added life checker url

added life checker url #8

Workflow file for this run

name: Build and Push Docker Image to Hub
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Hub
run: echo "${{secrets.DOCKERHUB_TOKEN}}" | docker login --username "${{secrets.DOCKERHUB_USERNAME}}" --password-stdin
- name: Build and push Docker image
run: |
VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
echo $VERSION
docker build . --file Dockerfile -t ${{secrets.DOCKERHUB_ORGNAME}}/dockerized-stanza-nlp:$VERSION
docker push ${{secrets.DOCKERHUB_ORGNAME}}/dockerized-stanza-nlp:$VERSION
docker tag ${{secrets.DOCKERHUB_ORGNAME}}/dockerized-stanza-nlp:$VERSION ${{secrets.DOCKERHUB_ORGNAME}}/dockerized-stanza-nlp:latest
docker push ${{secrets.DOCKERHUB_ORGNAME}}/dockerized-stanza-nlp:latest