diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..01eb787 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c587d1e --- /dev/null +++ b/Dockerfile @@ -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/* \ No newline at end of file