Skip to content

Commit

Permalink
ci: use correct context for docker build action
Browse files Browse the repository at this point in the history
Instead of cloning the repository again, use the local context with the
modified __version__.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Dec 13, 2024
1 parent d263978 commit 60202d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo "__version__ = \"$TAG\"" > asu/__init__.py
poetry version "$TAG"
- name: Build and publish
- name: Build and publish PyPi package
if: github.event_name == 'release'
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
Expand All @@ -48,6 +48,7 @@ jobs:
latest
- name: Login to DockerHub
if: github.repository_owner == 'openwrt'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -56,7 +57,8 @@ jobs:
- name: Build and push ASU to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
file: Containerfile
push: true
push: ${{ github.repository_owner == 'openwrt' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 60202d6

Please sign in to comment.