Skip to content

no smoke, adding logging and tests looking for why the test system tr… #1977

no smoke, adding logging and tests looking for why the test system tr…

no smoke, adding logging and tests looking for why the test system tr… #1977

# docker continuous delivery
# deliver docker images to configured repo with tags to match branches and git tags
---
name: Build & Deliver
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout git commit
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Set version environment variable
run: echo "PORTAL_VERSION="$(python setup.py --version)"" >> $GITHUB_ENV
- name: Publish to GitHub Container Registry
# TODO: pin to hash
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: ${{ github.repository }}
registry: ghcr.io
dockerfile: docker/Dockerfile
context: ./
# configured at repo settings/secrets
# GitHub Username
username: ${{ secrets.DOCKER_USERNAME }}
# GitHub personal access token
password: ${{ secrets.DOCKER_PASSWORD }}
# push tags/release by their git name
tag_names: true