fix(helm): move scripts into initdb as .sql
files
#120
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: Push to dev 👷♂️ | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
# This workflow will build a docker container, publish it to our private registry | |
# tagged as latest and with latest commit hash (shortened) | |
jobs: | |
# test_helm: | |
# uses: ./.github/workflows/test_helm_chart.yaml | |
build: | |
runs-on: ubuntu-latest | |
outputs: | |
BUILD_DATE: ${{ steps.variables.outputs.build_date }} | |
GIT_COMMIT: ${{ steps.variables.outputs.sha }} | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v3 | |
# ============================= | |
# This will be activated later | |
# ============================= | |
# - name : Set up JDK 11 | |
# uses: actions/setup-java@v2 | |
# with: | |
# java-version: '11' | |
# distribution: 'adopt' | |
# cache: 'maven' | |
# - name: install dependencies | |
# run: mvn install -DskipTests | |
# - name: Run JUNIT tests | |
# run: mvn test | |
- name: Get short commit hash | |
id: variables | |
run: | | |
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | |
echo "build_date=$(date --rfc-3339=ns)" >> $GITHUB_OUTPUT | |
build_n_push_private: | |
needs: build | |
uses: ./.github/workflows/push_to_private.yml | |
with: | |
build-args: AGROLD_DESCRIPTION="Agrold from commit ${{ needs.build.outputs.GIT_COMMIT }}",GIT_COMMIT=${{ needs.build.outputs.GIT_COMMIT}},BUILD_DATE="${{ needs.build.outputs.BUILD_DATE }}" | |
context: ./agrold-javaweb | |
dockerfile: ./agrold-javaweb/Dockerfile | |
image_name: agrold/agrold | |
tag: ${{ needs.build.outputs.GIT_COMMIT }} | |
registry_host: ${{ vars.DOCKER_REGISTRY_HOST }} | |
secrets: | |
DOCKER_REGISTRY_USER: ${{ secrets.DOCKER_REGISTRY_USER }} | |
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} |