Skip to content

Commit

Permalink
fix: docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmyersturnbull committed Jul 30, 2022
1 parent ed0e695 commit b0e9453
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,29 @@ jobs:
run: |
poetry build
poetry install
- name: Build the Docker image
run: |
docker build .
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ GITHUB_REPOSITORY
- name: Push the Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Attach artifacts to the GitHub release
uses: skx/github-action-publish-binaries@master
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
test:
strategy:
matrix:
# the order matters: macOS is assumed to be the last,
# so coverage is only updated for that one on Python 3.10
# see below
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.10"]
name: "test on ${{ matrix.os }}/py${{ matrix.python-version }}"
Expand All @@ -33,7 +30,7 @@ jobs:
run: |
docker build .
- name: Update coveralls
if: runner.os == 'macOS'
if: runner.os == 'Linux'
run: |
pip install 'coveralls>=3,<4'
coveralls --service=github || true
Expand Down

0 comments on commit b0e9453

Please sign in to comment.