chore(deps): update dependency semantic-release-preconfigured-convent… #399
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: CI/CD | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
paths-ignore: | |
- '.gitignore' | |
- '.mergify.yml' | |
- 'CHANGELOG.md' | |
- 'LICENSE' | |
- 'README.md' | |
- 'renovate.json' | |
pull_request: | |
workflow_dispatch: | |
env: | |
PROJECT_NAME: kt-jupyter | |
jobs: | |
dockerify: | |
runs-on: ubuntu-latest | |
name: Build image and release | |
steps: | |
- name: Checkout the repo | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Compute next release version | |
id: compute-next-version | |
uses: nicolasfara/[email protected] | |
with: | |
github-token: ${{ github.token }} | |
- name: Create Docker Image | |
run: | | |
docker build -t pikalab/${{ env.PROJECT_NAME }}:latest . | |
shell: bash | |
- name: Docker Login | |
if: ${{ steps.compute-next-version.outputs.will-release }} | |
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Release Image on Docker Hub | |
if: ${{ steps.compute-next-version.outputs.will-release }} | |
run: | | |
npm install | |
npx semantic-release | |
env: | |
ENFORCE_VERSION: ${{ steps.compute-next-version.outputs.next-version }} |