Skip to content

specified correct port in build args. #4

specified correct port in build args.

specified correct port in build args. #4

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- '*'
jobs:
push:
name: Push to registry.
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set python version
uses: actions/setup-python@v4
with:
python-version: '3.12.4'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Get version and tag image
run: |
poetry_version=$(poetry version | awk '{print $2}')
echo "version=${poetry_version}" >> $GITHUB_ENV
- name: Login to registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_PASSWORD }}
- name: Push to dockerhub
run: |
docker build . --file Dockerfile --tag dansknaw/pid-resolution-monitor:${{ env.version }} --build-arg BASE_DIR=/home/resolution --build-arg PORT=9004
docker push dansknaw/pid-resolution-monitor:${{ env.version }}