bump semver from 5.7.1 to 5.7.2 #128
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: ci | |
on: | |
push: | |
branches: | |
- '**' # matches every branch | |
pull_request: | |
branches: | |
- 'main' | |
types: [opened] | |
jobs: | |
contextualize: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Set env.BRANCH | |
run: echo "IS_MAIN_BRANCH=${{ (github.ref_name == 'main') }}" >> $GITHUB_ENV | |
outputs: | |
is_main_branch: ${{ env.IS_MAIN_BRANCH }} | |
docker: | |
needs: [contextualize] | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Login to Docker Hub | |
if: ${{ needs.contextualize.outputs.is_main_branch == 'true' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME || 'username' }} | |
password: ${{ secrets.DOCKERHUB_TOKEN || 'passord' }} | |
- | |
name: Build (and deploy if on main) Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: ${{ needs.contextualize.outputs.is_main_branch }} | |
tags: kinoba/javascript-static-code-analyzer:latest |