#55 - Adjust beacon query format #25
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: DEV-CI-CD | |
on: | |
push: | |
branches: [ "develop" ] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
environment: DEV | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn clean package -Dmaven.source.skip -Dmaven.test.skip=true | |
- name: Build the Docker image | |
run: docker build . --file docker/Dockerfile --tag ${{ secrets.DOCKER_IMAGE_TAG }} --no-cache | |
- name: Login to Registry | |
run: docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Push the latest DEV image | |
run: docker push ${{ secrets.DOCKER_IMAGE_TAG }} | |
cd: | |
name: Redeploy - Webhook call | |
runs-on: ubuntu-latest | |
environment: DEV | |
needs: ci | |
steps: | |
- name: Redeploy | |
uses: joelwmale/webhook-action@master | |
with: | |
url: ${{ secrets.WEBHOOK_URL }} | |
headers: ${{ secrets.WEBHOOK_HEADERS }} |