-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into reproducible-build
- Loading branch information
Showing
138 changed files
with
3,054 additions
and
1,201 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,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,127 @@ | ||
name: Docker Build and Publish | ||
|
||
permissions: | ||
packages: write | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: 'Manual supplied image tag like 1.16.0' | ||
required: true | ||
type: string | ||
push: | ||
tags: | ||
- "*.*.*" | ||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
ghcr.io/${{ github.repository }}/mapproxy | ||
tags: | | ||
type=semver,pattern={{version}} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to ghcr.io | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push base image | ||
uses: docker/build-push-action@v5 | ||
if: ${{ inputs.tags }} | ||
with: | ||
context: docker/ | ||
file: ./docker/Dockerfile | ||
push: true | ||
build-args: | | ||
MAPPROXY_VERSION=${{ inputs.tags }} | ||
target: base | ||
tags: | | ||
ghcr.io/${{ github.repository }}/mapproxy:${{ inputs.tags }} | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Build and push base image | ||
uses: docker/build-push-action@v5 | ||
if: ${{ !inputs.tags }} | ||
with: | ||
context: docker/ | ||
file: ./docker/Dockerfile | ||
push: true | ||
build-args: | | ||
MAPPROXY_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} | ||
target: base | ||
tags: | | ||
ghcr.io/${{ github.repository }}/mapproxy:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Build and push development image | ||
uses: docker/build-push-action@v5 | ||
if: ${{ inputs.tags }} | ||
with: | ||
context: docker/ | ||
file: ./docker/Dockerfile | ||
push: true | ||
build-args: | | ||
MAPPROXY_VERSION=${{ inputs.tags }} | ||
target: development | ||
tags: | | ||
ghcr.io/${{ github.repository }}/mapproxy:${{ inputs.tags }}-dev | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Build and push development image | ||
uses: docker/build-push-action@v5 | ||
if: ${{ !inputs.tags }} | ||
with: | ||
context: docker/ | ||
file: ./docker/Dockerfile | ||
push: true | ||
build-args: | | ||
MAPPROXY_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} | ||
target: development | ||
tags: | | ||
ghcr.io/${{ github.repository }}/mapproxy:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}-dev | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Build and push nginx image | ||
uses: docker/build-push-action@v5 | ||
if: ${{ inputs.tags }} | ||
with: | ||
context: docker/ | ||
file: ./docker/Dockerfile | ||
push: true | ||
build-args: | | ||
MAPPROXY_VERSION=${{ inputs.tags }} | ||
target: nginx | ||
tags: | | ||
ghcr.io/${{ github.repository }}/mapproxy:${{ inputs.tags }}-nginx | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Build and push nginx image | ||
uses: docker/build-push-action@v5 | ||
if: ${{ !inputs.tags }} | ||
with: | ||
context: docker/ | ||
file: ./docker/Dockerfile | ||
push: true | ||
build-args: | | ||
MAPPROXY_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} | ||
target: nginx | ||
tags: | | ||
ghcr.io/${{ github.repository }}/mapproxy:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}-nginx | ||
platforms: linux/amd64,linux/arm64 |
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
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
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
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
Oops, something went wrong.