Skip to content

Update .gitingore

Update .gitingore #1

Workflow file for this run

on:
push:
branches:
- develop
- main
name: Linux_Container_Workflow
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Branch name
run: echo running on branch ${{ github.ref_name }}
# - name: Replace quarkus.mongodb.connection-string
# uses: nightstory/replace-env@v1
# with:
# input_file: './src/main/resources/application.properties'
# env:
# MONGODB_CONNECTION_STRING: ${{ secrets.DEV_MONGODB_CONNECTION_STRING }}
# - name: Replace quarkus.mongodb.connection-string
# uses: nightstory/replace-env@v1
# with:
# input_file: './src/main/resources/application.properties'
# env:
# MONGODB_DATABASE_NAME: 'weather'
# - name: Replace quarkus.mongodb.connection-string
# uses: nightstory/replace-env@v1
# with:
# input_file: './src/main/resources/application.properties'
# env:
# WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }}
- uses: actions/setup-java@v1
with:
java-version: 17
- name: 'Build and push image'
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_PATH }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
cd backend
mvn package -DskipTests
docker build -f src/main/docker/Dockerfile.jvm -t ${{ secrets.REGISTRY_PATH }}/volcampanion-api:${{ github.ref_name }} .
docker push ${{ secrets.REGISTRY_PATH }}/volcampanion-api:${{ github.ref_name }}