Skip to content

Commit

Permalink
Added MSSQL ODBC driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars committed May 3, 2024
1 parent 33865dd commit d380104
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build
on:
push:
branches: ["main"]

env:
PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
AGENT_VERSION: "1.175.0"

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup QEMU
uses: docker/setup-qemu-action@v2
-
name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: scheiblingco
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: scheibling
password: ${{ env.PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
secret-envs: |
AGENT_VERSION=${{ env.AGENT_VERSION }}
push: true
tags: |
ghcr.io/scheiblingco/windmill-x:${{ env.AGENT_VERSION }}
docker.io/scheibling/windmill-x:${{ env.AGENT_VERSION }}
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG AGENT_VERSION
FROM ghcr.io/windmill-labs/windmill:${AGENT_VERSION}

RUN curl https://packages.microsoft.com/config/debian/10/prod.list | tee /etc/apt/sources.list.d/mssql-release.list \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools unixodbc-dev \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*

0 comments on commit d380104

Please sign in to comment.