chore(#42): Add SonarCloud config #228
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: Build cht-sync containers | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Compile the app | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Get Docker Hub username | |
id: get-docker-hub-username | |
run: echo '::set-output name=dockerhub_username::${{ secrets.DOCKERHUB_USERNAME }}' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
if: steps.get-docker-hub-username.outputs.dockerhub_username | |
- uses: actions/checkout@v2 | |
- name: Docker Build | |
run: docker-compose build | |
- name: Docker Push | |
run: docker-compose push |