From d8658b216c385a3267ea967694b78392698b4511 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Wed, 20 Sep 2023 12:09:36 +0000 Subject: [PATCH] Enhancement: Add `git` variants --- .github/workflows/ci-master-pr.yml | 1806 +++++++++++++++-- README.md | 13 + generate/definitions/VARIANTS.ps1 | 1 + variants/6.0.4-ubuntu-16.04-git/Dockerfile | 24 + .../docker-entrypoint.sh | 8 + variants/6.1.3-alpine-3.8-git/Dockerfile | 17 + .../6.1.3-alpine-3.8-git/docker-entrypoint.sh | 8 + variants/6.1.3-ubuntu-18.04-git/Dockerfile | 24 +- .../docker-entrypoint.sh | 8 + variants/6.2.4-alpine-3.8-git/Dockerfile | 17 + .../6.2.4-alpine-3.8-git/docker-entrypoint.sh | 8 + variants/6.2.4-ubuntu-18.04-git/Dockerfile | 24 +- .../docker-entrypoint.sh | 8 + variants/7.0.3-alpine-3.9-git/Dockerfile | 21 + .../7.0.3-alpine-3.9-git/docker-entrypoint.sh | 8 + variants/7.0.3-ubuntu-18.04-git/Dockerfile | 26 +- .../docker-entrypoint.sh | 8 + variants/7.1.5-alpine-3.13-git/Dockerfile | 21 + .../docker-entrypoint.sh | 8 + variants/7.1.5-ubuntu-20.04-git/Dockerfile | 24 + .../docker-entrypoint.sh | 8 + variants/7.2-alpine-3.17-git/Dockerfile | 21 + .../7.2-alpine-3.17-git/docker-entrypoint.sh | 8 + variants/7.2-ubuntu-22.04-git/Dockerfile | 24 + .../7.2-ubuntu-22.04-git/docker-entrypoint.sh | 8 + variants/7.3-alpine-3.17-git/Dockerfile | 21 + .../7.3-alpine-3.17-git/docker-entrypoint.sh | 8 + variants/7.3-ubuntu-22.04-git/Dockerfile | 24 + .../7.3-ubuntu-22.04-git/docker-entrypoint.sh | 8 + 29 files changed, 2079 insertions(+), 133 deletions(-) create mode 100644 variants/6.0.4-ubuntu-16.04-git/Dockerfile create mode 100644 variants/6.0.4-ubuntu-16.04-git/docker-entrypoint.sh create mode 100644 variants/6.1.3-alpine-3.8-git/docker-entrypoint.sh create mode 100644 variants/6.1.3-ubuntu-18.04-git/docker-entrypoint.sh create mode 100644 variants/6.2.4-alpine-3.8-git/docker-entrypoint.sh create mode 100644 variants/6.2.4-ubuntu-18.04-git/docker-entrypoint.sh create mode 100644 variants/7.0.3-alpine-3.9-git/Dockerfile create mode 100644 variants/7.0.3-alpine-3.9-git/docker-entrypoint.sh create mode 100644 variants/7.0.3-ubuntu-18.04-git/docker-entrypoint.sh create mode 100644 variants/7.1.5-alpine-3.13-git/Dockerfile create mode 100644 variants/7.1.5-alpine-3.13-git/docker-entrypoint.sh create mode 100644 variants/7.1.5-ubuntu-20.04-git/Dockerfile create mode 100644 variants/7.1.5-ubuntu-20.04-git/docker-entrypoint.sh create mode 100644 variants/7.2-alpine-3.17-git/Dockerfile create mode 100644 variants/7.2-alpine-3.17-git/docker-entrypoint.sh create mode 100644 variants/7.2-ubuntu-22.04-git/Dockerfile create mode 100644 variants/7.2-ubuntu-22.04-git/docker-entrypoint.sh create mode 100644 variants/7.3-alpine-3.17-git/Dockerfile create mode 100644 variants/7.3-alpine-3.17-git/docker-entrypoint.sh create mode 100644 variants/7.3-ubuntu-22.04-git/Dockerfile create mode 100644 variants/7.3-ubuntu-22.04-git/docker-entrypoint.sh diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index a9b5de8..9de8f58 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -153,10 +153,1570 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache + build-7-3-alpine-3-17-git: + runs-on: ubuntu-latest + env: + VARIANT: 7.3-alpine-3.17-git + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.3-alpine-3.17-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.3-alpine-3.17-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.3-alpine-3.17-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + build-7-3-alpine-3-17-git-sops: runs-on: ubuntu-latest env: - VARIANT: 7.3-alpine-3.17-git-sops + VARIANT: 7.3-alpine-3.17-git-sops + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.3-alpine-3.17-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.3-alpine-3.17-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.3-alpine-3.17-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-2-alpine-3-17: + runs-on: ubuntu-latest + env: + VARIANT: 7.2-alpine-3.17 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-2-alpine-3-17-git: + runs-on: ubuntu-latest + env: + VARIANT: 7.2-alpine-3.17-git + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-2-alpine-3-17-git-sops: + runs-on: ubuntu-latest + env: + VARIANT: 7.2-alpine-3.17-git-sops + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.2-alpine-3.17-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-1-5-alpine-3-13: + runs-on: ubuntu-latest + env: + VARIANT: 7.1.5-alpine-3.13 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-1-5-alpine-3-13-git: + runs-on: ubuntu-latest + env: + VARIANT: 7.1.5-alpine-3.13-git + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-1-5-alpine-3-13-git-sops: + runs-on: ubuntu-latest + env: + VARIANT: 7.1.5-alpine-3.13-git-sops + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.1.5-alpine-3.13-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-0-3-alpine-3-9: + runs-on: ubuntu-latest + env: + VARIANT: 7.0.3-alpine-3.9 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-0-3-alpine-3-9-git: + runs-on: ubuntu-latest + env: + VARIANT: 7.0.3-alpine-3.9-git + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-7-0-3-alpine-3-9-git-sops: + runs-on: ubuntu-latest + env: + VARIANT: 7.0.3-alpine-3.9-git-sops + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/7.0.3-alpine-3.9-git-sops + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-6-2-4-alpine-3-8: + runs-on: ubuntu-latest + env: + VARIANT: 6.2.4-alpine-3.8 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/6.2.4-alpine-3.8 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/6.2.4-alpine-3.8 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/6.2.4-alpine-3.8 + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-6-2-4-alpine-3-8-git: + runs-on: ubuntu-latest + env: + VARIANT: 6.2.4-alpine-3.8-git + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Display system info (linux) + run: | + set -e + hostname + whoami + cat /etc/*release + lscpu + free + df -h + pwd + docker info + docker version + + # See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ env.VARIANT }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ env.VARIANT }}- + ${{ runner.os }}-buildx- + + # This step generates the docker tags + - name: Prepare + id: prep + run: | + set -e + + # Get ref, i.e. from refs/heads/, or from refs/tags/. E.g. 'master' or 'v0.0.0' + REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) + + # Get short commit hash E.g. 'abc0123' + SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) + + # Generate docker image tags + # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' + # E.g. 'master-' and 'master-abc0123-' + REF_VARIANT="${REF}-${VARIANT}" + REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" + + # Pass variables to next step + echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_ENV + echo "VARIANT=$VARIANT" >> $GITHUB_ENV + echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_ENV + echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_ENV + + - name: Login to Docker Hub registry + # Run on master and tags + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} + password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} + + - name: Build (PRs) + # Run only on pull requests + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3 + with: + context: variants/6.2.4-alpine-3.8-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: false + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (master) + # Run only on master + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 + with: + context: variants/6.2.4-alpine-3.8-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + - name: Build and push (release) + if: startsWith(github.ref, 'refs/tags/') + uses: docker/build-push-action@v3 + with: + context: variants/6.2.4-alpine-3.8-git + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x + push: true + tags: | + ${{ github.repository }}:${{ env.VARIANT }} + ${{ github.repository }}:${{ env.REF_VARIANT }} + ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + + # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + + build-6-2-4-alpine-3-8-git-sops: + runs-on: ubuntu-latest + env: + VARIANT: 6.2.4-alpine-3.8-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -228,7 +1788,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.3-alpine-3.17-git-sops + context: variants/6.2.4-alpine-3.8-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -242,7 +1802,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.3-alpine-3.17-git-sops + context: variants/6.2.4-alpine-3.8-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -255,7 +1815,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.3-alpine-3.17-git-sops + context: variants/6.2.4-alpine-3.8-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -273,10 +1833,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-2-alpine-3-17: + build-6-1-3-alpine-3-8: runs-on: ubuntu-latest env: - VARIANT: 7.2-alpine-3.17 + VARIANT: 6.1.3-alpine-3.8 steps: - name: Checkout uses: actions/checkout@v3 @@ -348,7 +1908,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.2-alpine-3.17 + context: variants/6.1.3-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -362,7 +1922,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.2-alpine-3.17 + context: variants/6.1.3-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -375,7 +1935,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.2-alpine-3.17 + context: variants/6.1.3-alpine-3.8 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -393,10 +1953,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-2-alpine-3-17-git-sops: + build-6-1-3-alpine-3-8-git: runs-on: ubuntu-latest env: - VARIANT: 7.2-alpine-3.17-git-sops + VARIANT: 6.1.3-alpine-3.8-git steps: - name: Checkout uses: actions/checkout@v3 @@ -468,7 +2028,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.2-alpine-3.17-git-sops + context: variants/6.1.3-alpine-3.8-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -482,7 +2042,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.2-alpine-3.17-git-sops + context: variants/6.1.3-alpine-3.8-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -495,7 +2055,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.2-alpine-3.17-git-sops + context: variants/6.1.3-alpine-3.8-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -513,10 +2073,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-1-5-alpine-3-13: + build-6-1-3-alpine-3-8-git-sops: runs-on: ubuntu-latest env: - VARIANT: 7.1.5-alpine-3.13 + VARIANT: 6.1.3-alpine-3.8-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -588,7 +2148,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-alpine-3.13 + context: variants/6.1.3-alpine-3.8-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -602,7 +2162,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-alpine-3.13 + context: variants/6.1.3-alpine-3.8-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -615,7 +2175,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.1.5-alpine-3.13 + context: variants/6.1.3-alpine-3.8-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -633,10 +2193,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-1-5-alpine-3-13-git-sops: + build-7-3-ubuntu-22-04: runs-on: ubuntu-latest env: - VARIANT: 7.1.5-alpine-3.13-git-sops + VARIANT: 7.3-ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -708,7 +2268,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-alpine-3.13-git-sops + context: variants/7.3-ubuntu-22.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -722,7 +2282,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-alpine-3.13-git-sops + context: variants/7.3-ubuntu-22.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -735,13 +2295,14 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.1.5-alpine-3.13-git-sops + context: variants/7.3-ubuntu-22.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ env.VARIANT }} ${{ github.repository }}:${{ env.REF_VARIANT }} ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} + ${{ github.repository }}:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max @@ -753,10 +2314,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-0-3-alpine-3-9: + build-7-3-ubuntu-22-04-git: runs-on: ubuntu-latest env: - VARIANT: 7.0.3-alpine-3.9 + VARIANT: 7.3-ubuntu-22.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -828,7 +2389,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-alpine-3.9 + context: variants/7.3-ubuntu-22.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -842,7 +2403,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-alpine-3.9 + context: variants/7.3-ubuntu-22.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -855,7 +2416,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.0.3-alpine-3.9 + context: variants/7.3-ubuntu-22.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -873,10 +2434,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-0-3-alpine-3-9-git-sops: + build-7-3-ubuntu-22-04-git-sops: runs-on: ubuntu-latest env: - VARIANT: 7.0.3-alpine-3.9-git-sops + VARIANT: 7.3-ubuntu-22.04-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -948,7 +2509,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-alpine-3.9-git-sops + context: variants/7.3-ubuntu-22.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -962,7 +2523,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-alpine-3.9-git-sops + context: variants/7.3-ubuntu-22.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -975,7 +2536,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.0.3-alpine-3.9-git-sops + context: variants/7.3-ubuntu-22.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -993,10 +2554,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-2-4-alpine-3-8: + build-7-2-ubuntu-22-04: runs-on: ubuntu-latest env: - VARIANT: 6.2.4-alpine-3.8 + VARIANT: 7.2-ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -1068,7 +2629,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-alpine-3.8 + context: variants/7.2-ubuntu-22.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1082,7 +2643,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-alpine-3.8 + context: variants/7.2-ubuntu-22.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1095,7 +2656,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.2.4-alpine-3.8 + context: variants/7.2-ubuntu-22.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1113,10 +2674,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-2-4-alpine-3-8-git-sops: + build-7-2-ubuntu-22-04-git: runs-on: ubuntu-latest env: - VARIANT: 6.2.4-alpine-3.8-git-sops + VARIANT: 7.2-ubuntu-22.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -1188,7 +2749,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-alpine-3.8-git-sops + context: variants/7.2-ubuntu-22.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1202,7 +2763,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-alpine-3.8-git-sops + context: variants/7.2-ubuntu-22.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1215,7 +2776,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.2.4-alpine-3.8-git-sops + context: variants/7.2-ubuntu-22.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1233,10 +2794,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-1-3-alpine-3-8: + build-7-2-ubuntu-22-04-git-sops: runs-on: ubuntu-latest env: - VARIANT: 6.1.3-alpine-3.8 + VARIANT: 7.2-ubuntu-22.04-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -1308,7 +2869,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-alpine-3.8 + context: variants/7.2-ubuntu-22.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1322,7 +2883,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-alpine-3.8 + context: variants/7.2-ubuntu-22.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1335,7 +2896,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.1.3-alpine-3.8 + context: variants/7.2-ubuntu-22.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1353,10 +2914,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-1-3-alpine-3-8-git-sops: + build-7-1-5-ubuntu-20-04: runs-on: ubuntu-latest env: - VARIANT: 6.1.3-alpine-3.8-git-sops + VARIANT: 7.1.5-ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -1428,7 +2989,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-alpine-3.8-git-sops + context: variants/7.1.5-ubuntu-20.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1442,7 +3003,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-alpine-3.8-git-sops + context: variants/7.1.5-ubuntu-20.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1455,7 +3016,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.1.3-alpine-3.8-git-sops + context: variants/7.1.5-ubuntu-20.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1473,10 +3034,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-3-ubuntu-22-04: + build-7-1-5-ubuntu-20-04-git: runs-on: ubuntu-latest env: - VARIANT: 7.3-ubuntu-22.04 + VARIANT: 7.1.5-ubuntu-20.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -1548,7 +3109,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.3-ubuntu-22.04 + context: variants/7.1.5-ubuntu-20.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1562,7 +3123,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.3-ubuntu-22.04 + context: variants/7.1.5-ubuntu-20.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1575,14 +3136,13 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.3-ubuntu-22.04 + context: variants/7.1.5-ubuntu-20.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ env.VARIANT }} ${{ github.repository }}:${{ env.REF_VARIANT }} ${{ github.repository }}:${{ env.REF_SHA_VARIANT }} - ${{ github.repository }}:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max @@ -1594,10 +3154,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-3-ubuntu-22-04-git-sops: + build-7-1-5-ubuntu-20-04-git-sops: runs-on: ubuntu-latest env: - VARIANT: 7.3-ubuntu-22.04-git-sops + VARIANT: 7.1.5-ubuntu-20.04-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -1669,7 +3229,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.3-ubuntu-22.04-git-sops + context: variants/7.1.5-ubuntu-20.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1683,7 +3243,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.3-ubuntu-22.04-git-sops + context: variants/7.1.5-ubuntu-20.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1696,7 +3256,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.3-ubuntu-22.04-git-sops + context: variants/7.1.5-ubuntu-20.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1714,10 +3274,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-2-ubuntu-22-04: + build-7-0-3-ubuntu-18-04: runs-on: ubuntu-latest env: - VARIANT: 7.2-ubuntu-22.04 + VARIANT: 7.0.3-ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -1789,7 +3349,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.2-ubuntu-22.04 + context: variants/7.0.3-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1803,7 +3363,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.2-ubuntu-22.04 + context: variants/7.0.3-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1816,7 +3376,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.2-ubuntu-22.04 + context: variants/7.0.3-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1834,10 +3394,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-2-ubuntu-22-04-git-sops: + build-7-0-3-ubuntu-18-04-git: runs-on: ubuntu-latest env: - VARIANT: 7.2-ubuntu-22.04-git-sops + VARIANT: 7.0.3-ubuntu-18.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -1909,7 +3469,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.2-ubuntu-22.04-git-sops + context: variants/7.0.3-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -1923,7 +3483,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.2-ubuntu-22.04-git-sops + context: variants/7.0.3-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1936,7 +3496,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.2-ubuntu-22.04-git-sops + context: variants/7.0.3-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -1954,10 +3514,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-1-5-ubuntu-20-04: + build-7-0-3-ubuntu-18-04-git-sops: runs-on: ubuntu-latest env: - VARIANT: 7.1.5-ubuntu-20.04 + VARIANT: 7.0.3-ubuntu-18.04-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -2029,7 +3589,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-ubuntu-20.04 + context: variants/7.0.3-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2043,7 +3603,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-ubuntu-20.04 + context: variants/7.0.3-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2056,7 +3616,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.1.5-ubuntu-20.04 + context: variants/7.0.3-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2074,10 +3634,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-1-5-ubuntu-20-04-git-sops: + build-6-2-4-ubuntu-18-04: runs-on: ubuntu-latest env: - VARIANT: 7.1.5-ubuntu-20.04-git-sops + VARIANT: 6.2.4-ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -2149,7 +3709,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-ubuntu-20.04-git-sops + context: variants/6.2.4-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2163,7 +3723,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.1.5-ubuntu-20.04-git-sops + context: variants/6.2.4-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2176,7 +3736,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.1.5-ubuntu-20.04-git-sops + context: variants/6.2.4-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2194,10 +3754,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-0-3-ubuntu-18-04: + build-6-2-4-ubuntu-18-04-git: runs-on: ubuntu-latest env: - VARIANT: 7.0.3-ubuntu-18.04 + VARIANT: 6.2.4-ubuntu-18.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -2269,7 +3829,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-ubuntu-18.04 + context: variants/6.2.4-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2283,7 +3843,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-ubuntu-18.04 + context: variants/6.2.4-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2296,7 +3856,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.0.3-ubuntu-18.04 + context: variants/6.2.4-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2314,10 +3874,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-7-0-3-ubuntu-18-04-git-sops: + build-6-2-4-ubuntu-18-04-git-sops: runs-on: ubuntu-latest env: - VARIANT: 7.0.3-ubuntu-18.04-git-sops + VARIANT: 6.2.4-ubuntu-18.04-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -2389,7 +3949,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-ubuntu-18.04-git-sops + context: variants/6.2.4-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2403,7 +3963,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/7.0.3-ubuntu-18.04-git-sops + context: variants/6.2.4-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2416,7 +3976,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/7.0.3-ubuntu-18.04-git-sops + context: variants/6.2.4-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2434,10 +3994,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-2-4-ubuntu-18-04: + build-6-1-3-ubuntu-18-04: runs-on: ubuntu-latest env: - VARIANT: 6.2.4-ubuntu-18.04 + VARIANT: 6.1.3-ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -2509,7 +4069,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-ubuntu-18.04 + context: variants/6.1.3-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2523,7 +4083,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-ubuntu-18.04 + context: variants/6.1.3-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2536,7 +4096,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.2.4-ubuntu-18.04 + context: variants/6.1.3-ubuntu-18.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2554,10 +4114,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-2-4-ubuntu-18-04-git-sops: + build-6-1-3-ubuntu-18-04-git: runs-on: ubuntu-latest env: - VARIANT: 6.2.4-ubuntu-18.04-git-sops + VARIANT: 6.1.3-ubuntu-18.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -2629,7 +4189,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-ubuntu-18.04-git-sops + context: variants/6.1.3-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2643,7 +4203,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.2.4-ubuntu-18.04-git-sops + context: variants/6.1.3-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2656,7 +4216,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.2.4-ubuntu-18.04-git-sops + context: variants/6.1.3-ubuntu-18.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2674,10 +4234,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-1-3-ubuntu-18-04: + build-6-1-3-ubuntu-18-04-git-sops: runs-on: ubuntu-latest env: - VARIANT: 6.1.3-ubuntu-18.04 + VARIANT: 6.1.3-ubuntu-18.04-git-sops steps: - name: Checkout uses: actions/checkout@v3 @@ -2749,7 +4309,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-ubuntu-18.04 + context: variants/6.1.3-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2763,7 +4323,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-ubuntu-18.04 + context: variants/6.1.3-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2776,7 +4336,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.1.3-ubuntu-18.04 + context: variants/6.1.3-ubuntu-18.04-git-sops platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2794,10 +4354,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-1-3-ubuntu-18-04-git-sops: + build-6-0-4-ubuntu-16-04: runs-on: ubuntu-latest env: - VARIANT: 6.1.3-ubuntu-18.04-git-sops + VARIANT: 6.0.4-ubuntu-16.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -2869,7 +4429,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-ubuntu-18.04-git-sops + context: variants/6.0.4-ubuntu-16.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -2883,7 +4443,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.1.3-ubuntu-18.04-git-sops + context: variants/6.0.4-ubuntu-16.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2896,7 +4456,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.1.3-ubuntu-18.04-git-sops + context: variants/6.0.4-ubuntu-16.04 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -2914,10 +4474,10 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-6-0-4-ubuntu-16-04: + build-6-0-4-ubuntu-16-04-git: runs-on: ubuntu-latest env: - VARIANT: 6.0.4-ubuntu-16.04 + VARIANT: 6.0.4-ubuntu-16.04-git steps: - name: Checkout uses: actions/checkout@v3 @@ -2989,7 +4549,7 @@ jobs: if: github.event_name == 'pull_request' uses: docker/build-push-action@v3 with: - context: variants/6.0.4-ubuntu-16.04 + context: variants/6.0.4-ubuntu-16.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | @@ -3003,7 +4563,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v3 with: - context: variants/6.0.4-ubuntu-16.04 + context: variants/6.0.4-ubuntu-16.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -3016,7 +4576,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v3 with: - context: variants/6.0.4-ubuntu-16.04 + context: variants/6.0.4-ubuntu-16.04-git platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | @@ -3155,7 +4715,7 @@ jobs: mv /tmp/.buildx-cache-new /tmp/.buildx-cache update-draft-release: - needs: [build-7-3-alpine-3-17, build-7-3-alpine-3-17-git-sops, build-7-2-alpine-3-17, build-7-2-alpine-3-17-git-sops, build-7-1-5-alpine-3-13, build-7-1-5-alpine-3-13-git-sops, build-7-0-3-alpine-3-9, build-7-0-3-alpine-3-9-git-sops, build-6-2-4-alpine-3-8, build-6-2-4-alpine-3-8-git-sops, build-6-1-3-alpine-3-8, build-6-1-3-alpine-3-8-git-sops, build-7-3-ubuntu-22-04, build-7-3-ubuntu-22-04-git-sops, build-7-2-ubuntu-22-04, build-7-2-ubuntu-22-04-git-sops, build-7-1-5-ubuntu-20-04, build-7-1-5-ubuntu-20-04-git-sops, build-7-0-3-ubuntu-18-04, build-7-0-3-ubuntu-18-04-git-sops, build-6-2-4-ubuntu-18-04, build-6-2-4-ubuntu-18-04-git-sops, build-6-1-3-ubuntu-18-04, build-6-1-3-ubuntu-18-04-git-sops, build-6-0-4-ubuntu-16-04, build-6-0-4-ubuntu-16-04-git-sops] + needs: [build-7-3-alpine-3-17, build-7-3-alpine-3-17-git, build-7-3-alpine-3-17-git-sops, build-7-2-alpine-3-17, build-7-2-alpine-3-17-git, build-7-2-alpine-3-17-git-sops, build-7-1-5-alpine-3-13, build-7-1-5-alpine-3-13-git, build-7-1-5-alpine-3-13-git-sops, build-7-0-3-alpine-3-9, build-7-0-3-alpine-3-9-git, build-7-0-3-alpine-3-9-git-sops, build-6-2-4-alpine-3-8, build-6-2-4-alpine-3-8-git, build-6-2-4-alpine-3-8-git-sops, build-6-1-3-alpine-3-8, build-6-1-3-alpine-3-8-git, build-6-1-3-alpine-3-8-git-sops, build-7-3-ubuntu-22-04, build-7-3-ubuntu-22-04-git, build-7-3-ubuntu-22-04-git-sops, build-7-2-ubuntu-22-04, build-7-2-ubuntu-22-04-git, build-7-2-ubuntu-22-04-git-sops, build-7-1-5-ubuntu-20-04, build-7-1-5-ubuntu-20-04-git, build-7-1-5-ubuntu-20-04-git-sops, build-7-0-3-ubuntu-18-04, build-7-0-3-ubuntu-18-04-git, build-7-0-3-ubuntu-18-04-git-sops, build-6-2-4-ubuntu-18-04, build-6-2-4-ubuntu-18-04-git, build-6-2-4-ubuntu-18-04-git-sops, build-6-1-3-ubuntu-18-04, build-6-1-3-ubuntu-18-04-git, build-6-1-3-ubuntu-18-04-git-sops, build-6-0-4-ubuntu-16-04, build-6-0-4-ubuntu-16-04-git, build-6-0-4-ubuntu-16-04-git-sops] if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: @@ -3168,7 +4728,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-draft-release: - needs: [build-7-3-alpine-3-17, build-7-3-alpine-3-17-git-sops, build-7-2-alpine-3-17, build-7-2-alpine-3-17-git-sops, build-7-1-5-alpine-3-13, build-7-1-5-alpine-3-13-git-sops, build-7-0-3-alpine-3-9, build-7-0-3-alpine-3-9-git-sops, build-6-2-4-alpine-3-8, build-6-2-4-alpine-3-8-git-sops, build-6-1-3-alpine-3-8, build-6-1-3-alpine-3-8-git-sops, build-7-3-ubuntu-22-04, build-7-3-ubuntu-22-04-git-sops, build-7-2-ubuntu-22-04, build-7-2-ubuntu-22-04-git-sops, build-7-1-5-ubuntu-20-04, build-7-1-5-ubuntu-20-04-git-sops, build-7-0-3-ubuntu-18-04, build-7-0-3-ubuntu-18-04-git-sops, build-6-2-4-ubuntu-18-04, build-6-2-4-ubuntu-18-04-git-sops, build-6-1-3-ubuntu-18-04, build-6-1-3-ubuntu-18-04-git-sops, build-6-0-4-ubuntu-16-04, build-6-0-4-ubuntu-16-04-git-sops] + needs: [build-7-3-alpine-3-17, build-7-3-alpine-3-17-git, build-7-3-alpine-3-17-git-sops, build-7-2-alpine-3-17, build-7-2-alpine-3-17-git, build-7-2-alpine-3-17-git-sops, build-7-1-5-alpine-3-13, build-7-1-5-alpine-3-13-git, build-7-1-5-alpine-3-13-git-sops, build-7-0-3-alpine-3-9, build-7-0-3-alpine-3-9-git, build-7-0-3-alpine-3-9-git-sops, build-6-2-4-alpine-3-8, build-6-2-4-alpine-3-8-git, build-6-2-4-alpine-3-8-git-sops, build-6-1-3-alpine-3-8, build-6-1-3-alpine-3-8-git, build-6-1-3-alpine-3-8-git-sops, build-7-3-ubuntu-22-04, build-7-3-ubuntu-22-04-git, build-7-3-ubuntu-22-04-git-sops, build-7-2-ubuntu-22-04, build-7-2-ubuntu-22-04-git, build-7-2-ubuntu-22-04-git-sops, build-7-1-5-ubuntu-20-04, build-7-1-5-ubuntu-20-04-git, build-7-1-5-ubuntu-20-04-git-sops, build-7-0-3-ubuntu-18-04, build-7-0-3-ubuntu-18-04-git, build-7-0-3-ubuntu-18-04-git-sops, build-6-2-4-ubuntu-18-04, build-6-2-4-ubuntu-18-04-git, build-6-2-4-ubuntu-18-04-git-sops, build-6-1-3-ubuntu-18-04, build-6-1-3-ubuntu-18-04-git, build-6-1-3-ubuntu-18-04-git-sops, build-6-0-4-ubuntu-16-04, build-6-0-4-ubuntu-16-04-git, build-6-0-4-ubuntu-16-04-git-sops] if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: @@ -3183,7 +4743,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} update-dockerhub-description: - needs: [build-7-3-alpine-3-17, build-7-3-alpine-3-17-git-sops, build-7-2-alpine-3-17, build-7-2-alpine-3-17-git-sops, build-7-1-5-alpine-3-13, build-7-1-5-alpine-3-13-git-sops, build-7-0-3-alpine-3-9, build-7-0-3-alpine-3-9-git-sops, build-6-2-4-alpine-3-8, build-6-2-4-alpine-3-8-git-sops, build-6-1-3-alpine-3-8, build-6-1-3-alpine-3-8-git-sops, build-7-3-ubuntu-22-04, build-7-3-ubuntu-22-04-git-sops, build-7-2-ubuntu-22-04, build-7-2-ubuntu-22-04-git-sops, build-7-1-5-ubuntu-20-04, build-7-1-5-ubuntu-20-04-git-sops, build-7-0-3-ubuntu-18-04, build-7-0-3-ubuntu-18-04-git-sops, build-6-2-4-ubuntu-18-04, build-6-2-4-ubuntu-18-04-git-sops, build-6-1-3-ubuntu-18-04, build-6-1-3-ubuntu-18-04-git-sops, build-6-0-4-ubuntu-16-04, build-6-0-4-ubuntu-16-04-git-sops] + needs: [build-7-3-alpine-3-17, build-7-3-alpine-3-17-git, build-7-3-alpine-3-17-git-sops, build-7-2-alpine-3-17, build-7-2-alpine-3-17-git, build-7-2-alpine-3-17-git-sops, build-7-1-5-alpine-3-13, build-7-1-5-alpine-3-13-git, build-7-1-5-alpine-3-13-git-sops, build-7-0-3-alpine-3-9, build-7-0-3-alpine-3-9-git, build-7-0-3-alpine-3-9-git-sops, build-6-2-4-alpine-3-8, build-6-2-4-alpine-3-8-git, build-6-2-4-alpine-3-8-git-sops, build-6-1-3-alpine-3-8, build-6-1-3-alpine-3-8-git, build-6-1-3-alpine-3-8-git-sops, build-7-3-ubuntu-22-04, build-7-3-ubuntu-22-04-git, build-7-3-ubuntu-22-04-git-sops, build-7-2-ubuntu-22-04, build-7-2-ubuntu-22-04-git, build-7-2-ubuntu-22-04-git-sops, build-7-1-5-ubuntu-20-04, build-7-1-5-ubuntu-20-04-git, build-7-1-5-ubuntu-20-04-git-sops, build-7-0-3-ubuntu-18-04, build-7-0-3-ubuntu-18-04-git, build-7-0-3-ubuntu-18-04-git-sops, build-6-2-4-ubuntu-18-04, build-6-2-4-ubuntu-18-04-git, build-6-2-4-ubuntu-18-04-git-sops, build-6-1-3-ubuntu-18-04, build-6-1-3-ubuntu-18-04-git, build-6-1-3-ubuntu-18-04-git-sops, build-6-0-4-ubuntu-16-04, build-6-0-4-ubuntu-16-04-git, build-6-0-4-ubuntu-16-04-git-sops] if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 8510cd0..969cb75 100644 --- a/README.md +++ b/README.md @@ -11,30 +11,43 @@ Dockerized `powershell`, based on [mcr.microsoft.com/powershell](https://hub.doc | Tag | Dockerfile Build Context | |:-------:|:---------:| | `:7.3-alpine-3.17` | [View](variants/7.3-alpine-3.17) | +| `:7.3-alpine-3.17-git` | [View](variants/7.3-alpine-3.17-git) | | `:7.3-alpine-3.17-git-sops` | [View](variants/7.3-alpine-3.17-git-sops) | | `:7.2-alpine-3.17` | [View](variants/7.2-alpine-3.17) | +| `:7.2-alpine-3.17-git` | [View](variants/7.2-alpine-3.17-git) | | `:7.2-alpine-3.17-git-sops` | [View](variants/7.2-alpine-3.17-git-sops) | | `:7.1.5-alpine-3.13` | [View](variants/7.1.5-alpine-3.13) | +| `:7.1.5-alpine-3.13-git` | [View](variants/7.1.5-alpine-3.13-git) | | `:7.1.5-alpine-3.13-git-sops` | [View](variants/7.1.5-alpine-3.13-git-sops) | | `:7.0.3-alpine-3.9` | [View](variants/7.0.3-alpine-3.9) | +| `:7.0.3-alpine-3.9-git` | [View](variants/7.0.3-alpine-3.9-git) | | `:7.0.3-alpine-3.9-git-sops` | [View](variants/7.0.3-alpine-3.9-git-sops) | | `:6.2.4-alpine-3.8` | [View](variants/6.2.4-alpine-3.8) | +| `:6.2.4-alpine-3.8-git` | [View](variants/6.2.4-alpine-3.8-git) | | `:6.2.4-alpine-3.8-git-sops` | [View](variants/6.2.4-alpine-3.8-git-sops) | | `:6.1.3-alpine-3.8` | [View](variants/6.1.3-alpine-3.8) | +| `:6.1.3-alpine-3.8-git` | [View](variants/6.1.3-alpine-3.8-git) | | `:6.1.3-alpine-3.8-git-sops` | [View](variants/6.1.3-alpine-3.8-git-sops) | | `:7.3-ubuntu-22.04`, `:latest` | [View](variants/7.3-ubuntu-22.04) | +| `:7.3-ubuntu-22.04-git` | [View](variants/7.3-ubuntu-22.04-git) | | `:7.3-ubuntu-22.04-git-sops` | [View](variants/7.3-ubuntu-22.04-git-sops) | | `:7.2-ubuntu-22.04` | [View](variants/7.2-ubuntu-22.04) | +| `:7.2-ubuntu-22.04-git` | [View](variants/7.2-ubuntu-22.04-git) | | `:7.2-ubuntu-22.04-git-sops` | [View](variants/7.2-ubuntu-22.04-git-sops) | | `:7.1.5-ubuntu-20.04` | [View](variants/7.1.5-ubuntu-20.04) | +| `:7.1.5-ubuntu-20.04-git` | [View](variants/7.1.5-ubuntu-20.04-git) | | `:7.1.5-ubuntu-20.04-git-sops` | [View](variants/7.1.5-ubuntu-20.04-git-sops) | | `:7.0.3-ubuntu-18.04` | [View](variants/7.0.3-ubuntu-18.04) | +| `:7.0.3-ubuntu-18.04-git` | [View](variants/7.0.3-ubuntu-18.04-git) | | `:7.0.3-ubuntu-18.04-git-sops` | [View](variants/7.0.3-ubuntu-18.04-git-sops) | | `:6.2.4-ubuntu-18.04` | [View](variants/6.2.4-ubuntu-18.04) | +| `:6.2.4-ubuntu-18.04-git` | [View](variants/6.2.4-ubuntu-18.04-git) | | `:6.2.4-ubuntu-18.04-git-sops` | [View](variants/6.2.4-ubuntu-18.04-git-sops) | | `:6.1.3-ubuntu-18.04` | [View](variants/6.1.3-ubuntu-18.04) | +| `:6.1.3-ubuntu-18.04-git` | [View](variants/6.1.3-ubuntu-18.04-git) | | `:6.1.3-ubuntu-18.04-git-sops` | [View](variants/6.1.3-ubuntu-18.04-git-sops) | | `:6.0.4-ubuntu-16.04` | [View](variants/6.0.4-ubuntu-16.04) | +| `:6.0.4-ubuntu-16.04-git` | [View](variants/6.0.4-ubuntu-16.04-git) | | `:6.0.4-ubuntu-16.04-git-sops` | [View](variants/6.0.4-ubuntu-16.04-git-sops) | ## Development diff --git a/generate/definitions/VARIANTS.ps1 b/generate/definitions/VARIANTS.ps1 index 3cf04f2..f77973b 100644 --- a/generate/definitions/VARIANTS.ps1 +++ b/generate/definitions/VARIANTS.ps1 @@ -30,6 +30,7 @@ $local:VARIANTS_MATRIX = @( base_image_tag = $_ subvariants = @( @{ components = @() } + @{ components = @( 'git' ) } @{ components = @( 'git', 'sops' ) } ) } diff --git a/variants/6.0.4-ubuntu-16.04-git/Dockerfile b/variants/6.0.4-ubuntu-16.04-git/Dockerfile new file mode 100644 index 0000000..cbcf982 --- /dev/null +++ b/variants/6.0.4-ubuntu-16.04-git/Dockerfile @@ -0,0 +1,24 @@ +FROM mcr.microsoft.com/powershell:6.0.4-ubuntu-16.04 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/6.0.4-ubuntu-16.04-git/docker-entrypoint.sh b/variants/6.0.4-ubuntu-16.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/6.0.4-ubuntu-16.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/6.1.3-alpine-3.8-git/Dockerfile b/variants/6.1.3-alpine-3.8-git/Dockerfile index d580c5a..27f2340 100644 --- a/variants/6.1.3-alpine-3.8-git/Dockerfile +++ b/variants/6.1.3-alpine-3.8-git/Dockerfile @@ -1,4 +1,21 @@ FROM mcr.microsoft.com/powershell:6.1.3-alpine-3.8 +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + RUN apk add --no-cache git +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/6.1.3-alpine-3.8-git/docker-entrypoint.sh b/variants/6.1.3-alpine-3.8-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/6.1.3-alpine-3.8-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/6.1.3-ubuntu-18.04-git/Dockerfile b/variants/6.1.3-ubuntu-18.04-git/Dockerfile index 0c24b68..da844a7 100644 --- a/variants/6.1.3-ubuntu-18.04-git/Dockerfile +++ b/variants/6.1.3-ubuntu-18.04-git/Dockerfile @@ -1,6 +1,24 @@ FROM mcr.microsoft.com/powershell:6.1.3-ubuntu-18.04 -RUN apt-get update \ - && apt-get install -y git \ - && rm -rf /var/lib/apt/lists/* +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/6.1.3-ubuntu-18.04-git/docker-entrypoint.sh b/variants/6.1.3-ubuntu-18.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/6.1.3-ubuntu-18.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/6.2.4-alpine-3.8-git/Dockerfile b/variants/6.2.4-alpine-3.8-git/Dockerfile index 2cc7c84..43e8047 100644 --- a/variants/6.2.4-alpine-3.8-git/Dockerfile +++ b/variants/6.2.4-alpine-3.8-git/Dockerfile @@ -1,4 +1,21 @@ FROM mcr.microsoft.com/powershell:6.2.4-alpine-3.8 +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + RUN apk add --no-cache git +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/6.2.4-alpine-3.8-git/docker-entrypoint.sh b/variants/6.2.4-alpine-3.8-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/6.2.4-alpine-3.8-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/6.2.4-ubuntu-18.04-git/Dockerfile b/variants/6.2.4-ubuntu-18.04-git/Dockerfile index 71f48f5..8060ded 100644 --- a/variants/6.2.4-ubuntu-18.04-git/Dockerfile +++ b/variants/6.2.4-ubuntu-18.04-git/Dockerfile @@ -1,6 +1,24 @@ FROM mcr.microsoft.com/powershell:6.2.4-ubuntu-18.04 -RUN apt-get update \ - && apt-get install -y git \ - && rm -rf /var/lib/apt/lists/* +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/6.2.4-ubuntu-18.04-git/docker-entrypoint.sh b/variants/6.2.4-ubuntu-18.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/6.2.4-ubuntu-18.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.0.3-alpine-3.9-git/Dockerfile b/variants/7.0.3-alpine-3.9-git/Dockerfile new file mode 100644 index 0000000..ffa9929 --- /dev/null +++ b/variants/7.0.3-alpine-3.9-git/Dockerfile @@ -0,0 +1,21 @@ +FROM mcr.microsoft.com/powershell:7.0.3-alpine-3.9-20200928 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN apk add --no-cache git + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.0.3-alpine-3.9-git/docker-entrypoint.sh b/variants/7.0.3-alpine-3.9-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.0.3-alpine-3.9-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.0.3-ubuntu-18.04-git/Dockerfile b/variants/7.0.3-ubuntu-18.04-git/Dockerfile index 9b2fc15..071d537 100644 --- a/variants/7.0.3-ubuntu-18.04-git/Dockerfile +++ b/variants/7.0.3-ubuntu-18.04-git/Dockerfile @@ -1,6 +1,24 @@ -FROM mcr.microsoft.com/powershell:7.0.3-ubuntu-18.04 +FROM mcr.microsoft.com/powershell:7.0.3-ubuntu-18.04-20201027 -RUN apt-get update \ - && apt-get install -y git \ - && rm -rf /var/lib/apt/lists/* +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.0.3-ubuntu-18.04-git/docker-entrypoint.sh b/variants/7.0.3-ubuntu-18.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.0.3-ubuntu-18.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.1.5-alpine-3.13-git/Dockerfile b/variants/7.1.5-alpine-3.13-git/Dockerfile new file mode 100644 index 0000000..1e7689c --- /dev/null +++ b/variants/7.1.5-alpine-3.13-git/Dockerfile @@ -0,0 +1,21 @@ +FROM mcr.microsoft.com/powershell:7.1.5-alpine-3.13-20211021 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN apk add --no-cache git + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.1.5-alpine-3.13-git/docker-entrypoint.sh b/variants/7.1.5-alpine-3.13-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.1.5-alpine-3.13-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.1.5-ubuntu-20.04-git/Dockerfile b/variants/7.1.5-ubuntu-20.04-git/Dockerfile new file mode 100644 index 0000000..a178446 --- /dev/null +++ b/variants/7.1.5-ubuntu-20.04-git/Dockerfile @@ -0,0 +1,24 @@ +FROM mcr.microsoft.com/powershell:7.1.5-ubuntu-20.04-20211021 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.1.5-ubuntu-20.04-git/docker-entrypoint.sh b/variants/7.1.5-ubuntu-20.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.1.5-ubuntu-20.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.2-alpine-3.17-git/Dockerfile b/variants/7.2-alpine-3.17-git/Dockerfile new file mode 100644 index 0000000..fba862d --- /dev/null +++ b/variants/7.2-alpine-3.17-git/Dockerfile @@ -0,0 +1,21 @@ +FROM mcr.microsoft.com/powershell:lts-7.2-alpine-3.17 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN apk add --no-cache git + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.2-alpine-3.17-git/docker-entrypoint.sh b/variants/7.2-alpine-3.17-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.2-alpine-3.17-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.2-ubuntu-22.04-git/Dockerfile b/variants/7.2-ubuntu-22.04-git/Dockerfile new file mode 100644 index 0000000..03e9f54 --- /dev/null +++ b/variants/7.2-ubuntu-22.04-git/Dockerfile @@ -0,0 +1,24 @@ +FROM mcr.microsoft.com/powershell:lts-7.2-ubuntu-22.04 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.2-ubuntu-22.04-git/docker-entrypoint.sh b/variants/7.2-ubuntu-22.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.2-ubuntu-22.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.3-alpine-3.17-git/Dockerfile b/variants/7.3-alpine-3.17-git/Dockerfile new file mode 100644 index 0000000..92101d5 --- /dev/null +++ b/variants/7.3-alpine-3.17-git/Dockerfile @@ -0,0 +1,21 @@ +FROM mcr.microsoft.com/powershell:7.3-alpine-3.17 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN apk add --no-cache git + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.3-alpine-3.17-git/docker-entrypoint.sh b/variants/7.3-alpine-3.17-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.3-alpine-3.17-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file diff --git a/variants/7.3-ubuntu-22.04-git/Dockerfile b/variants/7.3-ubuntu-22.04-git/Dockerfile new file mode 100644 index 0000000..7fc0b0f --- /dev/null +++ b/variants/7.3-ubuntu-22.04-git/Dockerfile @@ -0,0 +1,24 @@ +FROM mcr.microsoft.com/powershell:7.3-ubuntu-22.04 + +# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 +ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_TELEMETRY_OPTOUT=1 +ENV POWERSHELL_UPDATECHECK=Off +ENV POWERSHELL_UPDATECHECK_OPTOUT=1 +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV DOTNET_TELEMETRY_OPTOUT=1 +ENV COMPlus_EnableDiagnostics=0 + +# Install Pester +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' +RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' + +RUN set -eux; \ + apt-get update; \ + apt-get install -y git; \ + rm -rf /var/lib/apt/lists/* + +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x docker-entrypoint.sh + +ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/variants/7.3-ubuntu-22.04-git/docker-entrypoint.sh b/variants/7.3-ubuntu-22.04-git/docker-entrypoint.sh new file mode 100644 index 0000000..5b23d6d --- /dev/null +++ b/variants/7.3-ubuntu-22.04-git/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then + set -- pwsh "$@" +fi + +exec "$@" \ No newline at end of file