Skip to content

Bumped version, ran poetry update, and improved github action. #1

Bumped version, ran poetry update, and improved github action.

Bumped version, ran poetry update, and improved github action. #1

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.11.6'
- name: Install Poetry
uses: snok/install-poetry@v1

Check failure on line 20 in .github/workflows/image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/image.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
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 fjodorvr/publication-date-updater:${{ env.version }}
docker push fjodorvr/publication-date-updater:${{ env.version }}