chore: prepare release v0.3.0 #1
This file contains hidden or 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
| name: Release | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| release: | ||
| types: [published] | ||
| jobs: | ||
| build-and-push-to-dockerhub: | ||
| name: Build / Push to Dockerhub | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: TEST | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set tag name | ||
| id: tag | ||
| run: | | ||
| if [ "${{ github.event_name }}" == "release" ]; then | ||
| echo "tag_name=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
| fi | ||
| - name: Login to Dockerhub | ||
| run: echo "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}" | docker login -u "${{ vars.DOCKERHUB_USERNAME }}" --password-stdin | ||
| - name: Build and push | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: . | ||
| push: true | ||
| tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ vars.DB_IMAGE_REPO }}:${{ steps.tag.outputs.tag_name }} | ||
| redeploy-webhook-call: | ||
| name: Redeploy webhook call | ||
| needs: [build-and-push-to-dockerhub] | ||
| uses: Bodzify/bodzify-server-management/.github/workflows/call-redeployment-webhook.yml@main | ||
|
Check failure on line 42 in .github/workflows/release.yaml
|
||
| with: | ||
| env: TEST | ||
| secrets: inherit | ||