Skip to content

Merge pull request #20 from Star-Academy/test/profile-service-test #23

Merge pull request #20 from Star-Academy/test/profile-service-test

Merge pull request #20 from Star-Academy/test/profile-service-test #23

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:latest
- name: build and push docker migrate to registry
uses: docker/build-push-action@v5
with:
context: .
file: migrate.Dockerfile
push: true
tags: mohammadsadeghmontazeri/migratestar:latest
- 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