Skip to content

building, then tests and then build-and-push #20

building, then tests and then build-and-push

building, then tests and then build-and-push #20

Workflow file for this run

name: Build and push docker image
on: push
jobs:
push_to_registry:
runs-on: ubuntu-latest
steps:
-
name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
-
name: Run tests
run: python -m unittest discover
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/fhcrc/taxtastic:test