Skip to content

Commit

Permalink
ci: write version for ghcr image builds too
Browse files Browse the repository at this point in the history
  • Loading branch information
igboyes committed May 12, 2022
1 parent 1178226 commit 374702c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Write VERSION file
run: |
echo ${{ github.event.release.tag_name }} > "VERSION"
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Update pyproject.toml version
run: |
sed -i 's/0\.0\.0/${{ github.event.release.tag_name }}/' pyproject.toml
run: sed -i 's/0\.0\.0/${{ github.event.release.tag_name }}/' pyproject.toml
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -39,6 +37,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Write VERSION file
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Update pyproject.toml version
run: sed -i 's/0\.0\.0/${{ github.event.release.tag_name }}/' pyproject.toml
- name: Login to Registry
uses: docker/login-action@v1
with:
Expand Down

0 comments on commit 374702c

Please sign in to comment.