Skip to content

Change staging table name format #130

Change staging table name format

Change staging table name format #130

Workflow file for this run

name: Run tests with coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PROJECT_NAME: Arcane.Stream.MicrosoftSynapseLink
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
validate_commit:
name: Validate commit
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
permissions:
id-token: write # required for dependabot PRs
pull-requests: write # required for dependabot PRs
contents: read # required for dependabot PRs
checks: write # required for cobertura-action
packages: read # required for building the SBT project
steps:
- uses: actions/checkout@v4
# - name: Setup Scala
# uses: japgolly/[email protected]
# with:
# java-version: temurin:1.23.0.1
# - name: Build the Docker Compose stack
# run: docker compose up -d
# - name: Build and test
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# shell: bash
# run: |
# export $(cat unit-tests.env| xargs)
# sbt clean coverage test coverageReport
# - uses: 5monkeys/cobertura-action@v14
# with:
# path: ./target/scala-3.6.1/coverage-report/cobertura.xml
# minimum_coverage: 40
build_image:
name: Build Docker Image and Helm Charts
runs-on: ubuntu-latest
needs: [ validate_commit ]
if: ${{ needs.validate_commit.result == 'success' || needs.validate_commit.result == 'skipped' }}
env:
TOKEN: '${{ secrets.MAVEN_PUBLISH_TOKEN }}'
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get project version
uses: SneaksAndData/github-actions/[email protected]
id: version
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{steps.version.outputs.version}}
flavor:
latest=false
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
use: true
platforms: linux/arm64,linux/amd64
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: .container/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64,linux/amd64
build-args: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Chart
uses: SneaksAndData/github-actions/[email protected]
with:
application: arcane-stream-microsoft-synapse-link
app_version: ${{ steps.meta.outputs.version }}
container_registry_user: ${{ github.actor }}
container_registry_token: ${{ secrets.GITHUB_TOKEN }}
container_registry_address: ghcr.io/sneaksanddata/