Skip to content

Commit

Permalink
building, then tests and then build-and-push
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Jul 24, 2024
1 parent 11dde24 commit bdfb597
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build and push docker image

on:
push:
tags: [ 'v*.*.*' ]
on: push

jobs:
push_to_registry:
Expand All @@ -13,23 +11,30 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
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@v2
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:latest
ghcr.io/fhcrc/taxtastic:${{ env.RELEASE_VERSION }}
tags: ghcr.io/fhcrc/taxtastic:test

0 comments on commit bdfb597

Please sign in to comment.