Remove idSucursal from recovery password endpoint #422
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: Open Commercial CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
build-analyze-deploy: | |
name: Build, analyze, dockerize, and publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Cache Maven packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build and analyze | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
AFIP_WS_AUTH_URI: "" | |
AFIP_WS_FE_URI=: "" | |
GMAIL_USERNAME: "" | |
GMAIL_PASSWORD: "" | |
RECAPTCHA_SECRET_KEY: "" | |
RECAPTCHA_TEST_KEY: "111111" | |
CLOUDINARY_URL: "" | |
MERCADOPAGO_ACCESS_TOKEN: "" | |
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=open-commercial -Dsonar.projectKey=api:api | |
- name: Generate changelog | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: Bullrich/generate-release-changelog@master | |
id: changelog | |
env: | |
REPO: ${{ github.repository }} | |
- name: Get release version | |
if: ${{ github.ref == 'refs/heads/master' }} | |
run: | | |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
- name: Create Release | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.RELEASE_VERSION }} | |
release_name: ${{ env.RELEASE_VERSION }} | |
body: | | |
${{ steps.changelog.outputs.changelog }} | |
- name: Set up QEMU | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push Docker image | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
tags: opencommercial/api:${{ env.RELEASE_VERSION }} |