mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 09:48:14 +00:00
ci: push images to jwilder/nginx-proxy
This commit is contained in:
parent
4a1d5bfc58
commit
d120ce9fde
39
.github/workflows/dockerhub.yml
vendored
39
.github/workflows/dockerhub.yml
vendored
@ -29,21 +29,28 @@ jobs:
|
|||||||
|
|
||||||
- name: Get Docker tags for Debian based image
|
- name: Get Docker tags for Debian based image
|
||||||
id: docker_meta_debian
|
id: docker_meta_debian
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
with:
|
with:
|
||||||
images: nginxproxy/nginx-proxy
|
images: |
|
||||||
tag-semver: |
|
nginxproxy/nginx-proxy
|
||||||
{{version}}
|
jwilder/nginx-proxy
|
||||||
{{major}}.{{minor}}
|
tags: |
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||||
|
|
||||||
- name: Get Docker tags for Alpine based image
|
- name: Get Docker tags for Alpine based image
|
||||||
id: docker_meta_alpine
|
id: docker_meta_alpine
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
with:
|
with:
|
||||||
images: nginxproxy/nginx-proxy
|
images: |
|
||||||
tag-semver: |
|
nginxproxy/nginx-proxy
|
||||||
{{version}}-alpine
|
jwilder/nginx-proxy
|
||||||
{{major}}.{{minor}}-alpine
|
tags: |
|
||||||
|
type=semver,suffix=-alpine,pattern={{version}}
|
||||||
|
type=semver,suffix=-alpine,pattern={{major}}.{{minor}}
|
||||||
|
type=raw,value=alpine,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||||
|
flavor: latest=false
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
@ -64,10 +71,8 @@ jobs:
|
|||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.docker_meta_debian.outputs.tags }}
|
||||||
${{ github.ref != 'refs/heads/master' && steps.docker_meta_debian.outputs.tags || '' }}
|
labels: ${{ steps.docker_meta_debian.outputs.labels }}
|
||||||
${{ github.ref == 'refs/heads/master' && 'nginxproxy/nginx-proxy:latest' || '' }}
|
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
|
||||||
|
|
||||||
- name: Build and push the Alpine based image
|
- name: Build and push the Alpine based image
|
||||||
id: docker_build_alpine
|
id: docker_build_alpine
|
||||||
@ -76,10 +81,8 @@ jobs:
|
|||||||
file: Dockerfile.alpine
|
file: Dockerfile.alpine
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.docker_meta_alpine.outputs.tags }}
|
||||||
${{ github.ref != 'refs/heads/master' && steps.docker_meta_alpine.outputs.tags || '' }}
|
labels: ${{ steps.docker_meta_alpine.outputs.labels }}
|
||||||
${{ github.ref == 'refs/heads/master' && 'nginxproxy/nginx-proxy:alpine' || '' }}
|
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
|
||||||
|
|
||||||
- name: Images digests
|
- name: Images digests
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user