Skip to content

Commit

Permalink
ci: Updated release actions
Browse files Browse the repository at this point in the history
Added additional step to rebuild package manualy, added job to release Docker image using release output
  • Loading branch information
mike-pisman committed Sep 17, 2023
1 parent 7d83b90 commit 937f218
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,40 @@ jobs:
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Print out the latest git tag
run: |
git tag
- name: Build Package
run: |
python -m build
- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
if: ${{ steps.release.outputs.released }} == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}
tag: ${{ steps.release.outputs.tag }}
docker:
runs-on: arc-runner-k8s
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Context for Buildx
id: buildx-context
run: |
docker context create builders
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
endpoint: builders
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5e
with:
push: true
tags: unipoll/api:${{ steps.release.outputs.tag }}, unipoll/api:latest

0 comments on commit 937f218

Please sign in to comment.