Upgrade javascript dependencies #209
Workflow file for this run
This file contains 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: | |
pull_request_target: | |
types: [closed] | |
workflow_dispatch: | |
inputs: | |
releaseType: | |
description: 'Release type' | |
required: true | |
default: 'patch' | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
release_job: | |
uses: bedita/github-workflows/.github/workflows/release.yml@v1 | |
with: | |
main_branch: 'master' | |
dist_branches: '["master", "3.x"]' | |
version_bump: ${{ inputs.releaseType }} | |
version_ini_path: config/version.ini | |
version_ini_prefix: "[Manager]\nversion=" | |
package_json_version: true | |
docker_push: | |
runs-on: 'ubuntu-latest' | |
needs: release_job | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Debug output version | |
run: | | |
echo version var ${{ needs.release_job.outputs.version }} | |
- name: Print message if no semantic version was created | |
if: contains(needs.release_job.outputs.version, 'undefined') | |
run: | | |
echo Skip version file update and docker image creation | |
- name: Update version file | |
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }} | |
run: | | |
echo -e "[Manager]\nversion = ${{ needs.release_job.outputs.version }}" > config/version.ini | |
- name: Set up QEMU | |
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }} | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }} | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }} | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }} | |
with: | |
context: . | |
push: true | |
tags: "${{ github.repository }}:${{ needs.release_job.outputs.version }},${{ github.repository }}:${{ needs.release_job.outputs.major }}" |