Skip to content

fix(Docker-Workflow): Update docker.yml #36

fix(Docker-Workflow): Update docker.yml

fix(Docker-Workflow): Update docker.yml #36

Workflow file for this run

name: Realse Version
on:
pull_request:
types:
- closed
branches:
- master
jobs:
releaseGithub:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Bump version and push tag
id: bump
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
fromTag: ${{ steps.bump.outputs.previous_tag }}
toTag: ${{ steps.bump.outputs.new_tag }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.bump.outputs.changelog }}
tag_name: ${{ steps.bump.outputs.new_tag }}
releaseDocker:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
needs: releaseGithub
steps:
- uses: actions/checkout@v4
- name: install requirements
run: pip install -r requirements.txt
- name: docker login
uses: docker/login-action@v3
with:
username: 81318131
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build services
run: docker compose build
- name: push images
run: docker compose push