Skip to content

Merge pull request #24 from Star-Academy/bugfix/fix-uploads #26

Merge pull request #24 from Star-Academy/bugfix/fix-uploads

Merge pull request #24 from Star-Academy/bugfix/fix-uploads #26

Workflow file for this run

name: CD_Backend
permissions:
contents: write
on:
push:
branches:
- dev
jobs:
version-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: build and push docker backend to registry
uses: docker/build-push-action@v5
with:
context: .
file: backend.Dockerfile
push: true
tags: mohammadsadeghmontazeri/starback:${{ steps.tag_version.outputs.new_tag }}
- name: build and push docker migrate to registry
uses: docker/build-push-action@v5
with:
context: .
file: migrate.Dockerfile
push: true
tags: mohammadsadeghmontazeri/migratestar:${{ steps.tag_version.outputs.new_tag }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: |
steps.tag_version.outputs.changelog
draft: false
prerelease: false