Merge pull request #16 from Facets-cloud/connecting-mysql #1
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: Docker Build PetClinic-SpringBoot | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- spring-boot-reactjs-ts-mysql-template/code/springboot-petclinic/** | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Install facetsctl | |
run: | | |
echo "Installing @facets-cloud/facetsctl" | |
npm install -g @facets-cloud/facetsctl | |
facetsctl --version | |
- name: Check out the code | |
uses: actions/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./spring-boot-reactjs-ts-mysql-template/code/springboot-petclinic/ | |
file: ./spring-boot-reactjs-ts-mysql-template/code/springboot-petclinic/Dockerfile | |
push: false | |
load: true | |
tags: app/springboot-petclinic:${{ github.run_id }} | |
- name: Login to facetsctl | |
run: facetsctl login -u [email protected] -t 299def0a-c888-4fef-90f0-6b0632b92eae -c https://facetsdemo.console.facets.cloud | |
- name: Push Image using facetsctl | |
run: facetsctl push -i app/springboot-petclinic:${{ github.run_id }} -a springboot-petclinic-CI -e springboot@${GITHUB_RUN_ID} --registration-type=RELEASE_STREAM --registration-value=DEV --artifactory facets-config-auto |