Skip to content

Commit

Permalink
add CI job to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekVigas committed Nov 4, 2022
1 parent 309632a commit 1b58830
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,24 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_api_token }}

build-docker-image:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push image
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}"
push: true
tags: ghcr.io/{{ github.repository }}:{{ github.ref_name }}

0 comments on commit 1b58830

Please sign in to comment.