|
@@ -32,7 +32,7 @@ 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: docker/metadata-action@v3
|
|
|
|
|
|
+ uses: docker/metadata-action@v4
|
|
with:
|
|
with:
|
|
images: |
|
|
images: |
|
|
ghcr.io/nginx-proxy/nginx-proxy
|
|
ghcr.io/nginx-proxy/nginx-proxy
|
|
@@ -41,25 +41,25 @@ jobs:
|
|
tags: |
|
|
tags: |
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
- type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
|
|
|
|
|
+ type=raw,value=latest,enable={{is_default_branch}}
|
|
labels: |
|
|
labels: |
|
|
org.opencontainers.image.authors=Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag), Jason Wilder
|
|
org.opencontainers.image.authors=Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag), Jason Wilder
|
|
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
|
|
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
|
|
|
|
|
|
- name: Set up QEMU
|
|
- name: Set up QEMU
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
+ uses: docker/setup-qemu-action@v2
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
+ uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
- name: Login to DockerHub
|
|
- name: Login to DockerHub
|
|
- uses: docker/login-action@v1
|
|
|
|
|
|
+ uses: docker/login-action@v2
|
|
with:
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
- name: Log in to GitHub Container Registry
|
|
- uses: docker/login-action@v1
|
|
|
|
|
|
+ uses: docker/login-action@v2
|
|
with:
|
|
with:
|
|
registry: ghcr.io
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
username: ${{ github.actor }}
|
|
@@ -67,7 +67,7 @@ jobs:
|
|
|
|
|
|
- name: Build and push the Debian based image
|
|
- name: Build and push the Debian based image
|
|
id: docker_build_debian
|
|
id: docker_build_debian
|
|
- uses: docker/build-push-action@v2
|
|
|
|
|
|
+ uses: docker/build-push-action@v3
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: Dockerfile
|
|
file: Dockerfile
|
|
@@ -93,7 +93,7 @@ jobs:
|
|
|
|
|
|
- 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: docker/metadata-action@v3
|
|
|
|
|
|
+ uses: docker/metadata-action@v4
|
|
with:
|
|
with:
|
|
images: |
|
|
images: |
|
|
ghcr.io/nginx-proxy/nginx-proxy
|
|
ghcr.io/nginx-proxy/nginx-proxy
|
|
@@ -102,26 +102,26 @@ jobs:
|
|
tags: |
|
|
tags: |
|
|
type=semver,suffix=-alpine,pattern={{version}}
|
|
type=semver,suffix=-alpine,pattern={{version}}
|
|
type=semver,suffix=-alpine,pattern={{major}}.{{minor}}
|
|
type=semver,suffix=-alpine,pattern={{major}}.{{minor}}
|
|
- type=raw,value=alpine,enable=${{ github.ref == 'refs/heads/main' }}
|
|
|
|
|
|
+ type=raw,value=alpine,enable={{is_default_branch}}
|
|
labels: |
|
|
labels: |
|
|
org.opencontainers.image.authors=Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag), Jason Wilder
|
|
org.opencontainers.image.authors=Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag), Jason Wilder
|
|
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
|
|
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
|
|
flavor: latest=false
|
|
flavor: latest=false
|
|
|
|
|
|
- name: Set up QEMU
|
|
- name: Set up QEMU
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
+ uses: docker/setup-qemu-action@v2
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
+ uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
- name: Login to DockerHub
|
|
- name: Login to DockerHub
|
|
- uses: docker/login-action@v1
|
|
|
|
|
|
+ uses: docker/login-action@v2
|
|
with:
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
- name: Log in to GitHub Container Registry
|
|
- uses: docker/login-action@v1
|
|
|
|
|
|
+ uses: docker/login-action@v2
|
|
with:
|
|
with:
|
|
registry: ghcr.io
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
username: ${{ github.actor }}
|
|
@@ -129,7 +129,7 @@ jobs:
|
|
|
|
|
|
- name: Build and push the Alpine based image
|
|
- name: Build and push the Alpine based image
|
|
id: docker_build_alpine
|
|
id: docker_build_alpine
|
|
- uses: docker/build-push-action@v2
|
|
|
|
|
|
+ uses: docker/build-push-action@v3
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
file: Dockerfile.alpine
|