|
@@ -53,12 +53,16 @@ jobs:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
+ - name: Retrieve version
|
|
|
|
+ run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
|
|
|
|
+
|
|
- 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@v2
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: Dockerfile
|
|
file: Dockerfile
|
|
|
|
+ build-args: NGINX_PROXY_VERSION=${{ env.GIT_DESCRIBE }}
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
push: true
|
|
push: true
|
|
tags: ${{ steps.docker_meta_debian.outputs.tags }}
|
|
tags: ${{ steps.docker_meta_debian.outputs.tags }}
|
|
@@ -101,12 +105,16 @@ jobs:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
+ - name: Retrieve version
|
|
|
|
+ run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
|
|
|
|
+
|
|
- 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@v2
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
file: Dockerfile.alpine
|
|
|
|
+ build-args: NGINX_PROXY_VERSION=${{ env.GIT_DESCRIBE }}
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
push: true
|
|
push: true
|
|
tags: ${{ steps.docker_meta_alpine.outputs.tags }}
|
|
tags: ${{ steps.docker_meta_alpine.outputs.tags }}
|