mirror of
https://github.com/maplibre/martin.git
synced 2024-12-22 14:21:39 +03:00
0067616670
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.5.0 to 2.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/setup-buildx-action/releases">docker/setup-buildx-action's releases</a>.</em></p> <blockquote> <h2>v2.6.0</h2> <h2>What's Changed</h2> <ul> <li>Set node name for k8s driver when appending nodes by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/219">docker/setup-buildx-action#219</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.1.0-beta.18 to 0.3.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/220">docker/setup-buildx-action#220</a> <a href="https://redirect.github.com/docker/setup-buildx-action/pull/229">docker/setup-buildx-action#229</a> <a href="https://redirect.github.com/docker/setup-buildx-action/pull/231">docker/setup-buildx-action#231</a> <a href="https://redirect.github.com/docker/setup-buildx-action/pull/236">docker/setup-buildx-action#236</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v2.5.0...v2.6.0">https://github.com/docker/setup-buildx-action/compare/v2.5.0...v2.6.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="6a58db7e0d
"><code>6a58db7</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/236">#236</a> from docker/dependabot/npm_and_yarn/docker/actions-to...</li> <li><a href="d56292e348
"><code>d56292e</code></a> update generated content</li> <li><a href="790eb2db47
"><code>790eb2d</code></a> Bump <code>@docker/actions-toolkit</code> from 0.2.0 to 0.3.0</li> <li><a href="2a81c53912
"><code>2a81c53</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/231">#231</a> from docker/dependabot/npm_and_yarn/docker/actions-to...</li> <li><a href="00b2400aad
"><code>00b2400</code></a> update generated content</li> <li><a href="484614d7a1
"><code>484614d</code></a> Bump <code>@docker/actions-toolkit</code> from 0.1.0 to 0.2.0</li> <li><a href="d95759405f
"><code>d957594</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/219">#219</a> from crazy-max/ci-k3s-append</li> <li><a href="5bb6d36be0
"><code>5bb6d36</code></a> ci: set up and build with k3s</li> <li><a href="a99c5e53ef
"><code>a99c5e5</code></a> update generated content</li> <li><a href="fc1a41d2e5
"><code>fc1a41d</code></a> set node name for k8s driver when appending nodes</li> <li>Additional commits viewable in <a href="https://github.com/docker/setup-buildx-action/compare/v2.5.0...v2.6.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=docker/setup-buildx-action&package-manager=github_actions&previous-version=2.5.0&new-version=2.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
123 lines
3.6 KiB
YAML
123 lines
3.6 KiB
YAML
name: Docker
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'demo/**'
|
|
- 'docs/**'
|
|
- 'homebrew-formula/**'
|
|
pull_request:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'demo/**'
|
|
- 'docs/**'
|
|
- 'homebrew-formula/**'
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
docker:
|
|
# Don't change this name - it is used by the merge protection rules
|
|
name: Build ${{ matrix.platform }} docker image
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
include:
|
|
- platform: linux/amd64
|
|
file: Dockerfile
|
|
# Arm64 does not publish properly, see #655
|
|
# - platform: linux/arm64
|
|
# file: arm64.Dockerfile
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
|
|
# https://github.com/docker/metadata-action
|
|
- name: Docker meta
|
|
id: docker_meta
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
images: ghcr.io/maplibre/martin
|
|
|
|
# # https://github.com/docker/setup-qemu-action
|
|
# - name: Set up QEMU
|
|
# uses: docker/setup-qemu-action@v2.1.0
|
|
# with:
|
|
# platforms: linux/arm64,linux/amd64
|
|
|
|
# https://github.com/docker/setup-buildx-action
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2.6.0
|
|
with:
|
|
install: true
|
|
# platforms: ${{ matrix.platform }}
|
|
|
|
- name: Build the Docker image
|
|
id: docker_build
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
file: ${{ matrix.file }}
|
|
push: false
|
|
load: true
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
|
# platforms: ${{ matrix.platform }}
|
|
|
|
- name: Start postgres
|
|
# arm64 testing cannot be tested in a cross-platform env
|
|
if: matrix.platform == 'linux/amd64'
|
|
uses: nyurik/action-setup-postgis@v1
|
|
id: pg
|
|
with:
|
|
username: test
|
|
password: test
|
|
database: test
|
|
rights: --superuser
|
|
|
|
- name: Init database
|
|
# arm64 testing cannot be tested in a cross-platform env
|
|
if: matrix.platform == 'linux/amd64'
|
|
shell: bash
|
|
run: tests/fixtures/initdb.sh
|
|
env:
|
|
DATABASE_URL: ${{ steps.pg.outputs.connection-uri }}
|
|
|
|
- name: Test Docker image
|
|
# arm64 testing cannot be tested in a cross-platform env
|
|
if: matrix.platform == 'linux/amd64'
|
|
run: |
|
|
TAG=$(echo '${{ steps.docker_meta.outputs.json }}' | jq -r '.tags[0]')
|
|
export MBTILES_BUILD=-
|
|
export MBTILES_BIN=-
|
|
export MARTIN_BUILD=-
|
|
export MARTIN_BIN="docker run --rm --net host -e DATABASE_URL -v $PWD/tests:/tests $TAG"
|
|
echo "MARTIN_BIN=$MARTIN_BIN"
|
|
tests/test.sh
|
|
env:
|
|
DATABASE_URL: ${{ steps.pg.outputs.connection-uri }}
|
|
|
|
- name: Login to GitHub Docker registry
|
|
uses: docker/login-action@v2
|
|
if: ${{ github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork }}
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Push the Docker image
|
|
if: ${{ github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' }}
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
file: ${{ matrix.file }}
|
|
push: true
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
|
# platforms: ${{ matrix.platform }}
|