-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drop 'get-tag' action use * Use trusted publishing to PyPI * Update action versions * Test with Python 3.10-3.13 as well
- Loading branch information
Showing
3 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,25 +8,23 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: olegtarasov/[email protected] | ||
id: get-tag | ||
- uses: actions/checkout@v4 | ||
- name: Build image | ||
run: docker build . -t epicwink/seddy:${{ steps.get-tag.outputs.tag }} | ||
run: docker build . -t epicwink/seddy:${{ github.ref_name }} | ||
- name: Login to DockerHub | ||
run: > | ||
echo ${{ secrets.DOCKERHUB_PASSWORD }} | ||
| docker login --password-stdin -u epicwink | ||
- name: Publish image | ||
run: docker push epicwink/seddy:${{ steps.get-tag.outputs.tag }} | ||
run: docker push epicwink/seddy:${{ github.ref_name }} | ||
- name: Check tag | ||
id: check-tag | ||
run: | | ||
if [[ ${{ steps.get-tag.outputs.tag }} =~ ^v\d+\.\d+\.\d+$ ]]; then | ||
if [[ "${{ github.ref_name }}" =~ '^v\d+\.\d+\.\d+$' ]]; then | ||
echo ::set-output name=match::true | ||
fi | ||
- name: Publish latest image | ||
if: steps.check-tag.outputs.match == 'true' | ||
run: | | ||
docker tag epicwink/seddy:${{ steps.get-tag.outputs.tag }} epicwink/seddy:latest | ||
docker tag epicwink/seddy:${{ github.ref_name }} epicwink/seddy:latest | ||
docker push epicwink/seddy:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters