-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lars
committed
May 3, 2024
1 parent
33865dd
commit d380104
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |
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
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/* |