Skip to content

chore: prepare release v0.3.0 #1

chore: prepare release v0.3.0

chore: prepare release v0.3.0 #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yaml" -> "Bodzify/bodzify-server-management/.github/workflows/call-redeployment-webhook.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
env: TEST
secrets: inherit