diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 27eb5b4d..79b7cb6b 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -3517,1941 +3517,6 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - build-4-10-1: - runs-on: ubuntu-latest - 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-4.10.1-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-4.10.1- - ${{ runner.os }}-buildx- - - - 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 }} - - # This step generates the docker tags - - name: Prepare - id: prep-4-10-1 - 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-' - VARIANT="4.10.1" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.10.1 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-10-1-docker - 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-' - VARIANT="4.10.1-docker" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.10.1-docker - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-10-1-docker-go-1-20-11 - 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-' - VARIANT="4.10.1-docker-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.10.1-docker-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-10-1-docker-rootless - 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-' - VARIANT="4.10.1-docker-rootless" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.10.1-docker-rootless - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-rootless - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker-rootless - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker-rootless - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-10-1-docker-rootless-go-1-20-11 - 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-' - VARIANT="4.10.1-docker-rootless-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.10.1-docker-rootless-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker-rootless-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.10.1-docker-rootless-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.10.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-10-1-docker-rootless-go-1-20-11.outputs.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-4-9-1: - runs-on: ubuntu-latest - 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-4.9.1-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-4.9.1- - ${{ runner.os }}-buildx- - - - 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 }} - - # This step generates the docker tags - - name: Prepare - id: prep-4-9-1 - 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-' - VARIANT="4.9.1" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.9.1 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-9-1-docker - 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-' - VARIANT="4.9.1-docker" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.9.1-docker - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-9-1-docker-go-1-20-11 - 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-' - VARIANT="4.9.1-docker-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.9.1-docker-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-9-1-docker-rootless - 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-' - VARIANT="4.9.1-docker-rootless" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.9.1-docker-rootless - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-rootless - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker-rootless - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker-rootless - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-9-1-docker-rootless-go-1-20-11 - 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-' - VARIANT="4.9.1-docker-rootless-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.9.1-docker-rootless-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker-rootless-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.9.1-docker-rootless-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.9.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-9-1-docker-rootless-go-1-20-11.outputs.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-4-8-3: - runs-on: ubuntu-latest - 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-4.8.3-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-4.8.3- - ${{ runner.os }}-buildx- - - - 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 }} - - # This step generates the docker tags - - name: Prepare - id: prep-4-8-3 - 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-' - VARIANT="4.8.3" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.8.3 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-8-3-docker - 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-' - VARIANT="4.8.3-docker" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.8.3-docker - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-8-3-docker-go-1-20-11 - 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-' - VARIANT="4.8.3-docker-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.8.3-docker-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-8-3-docker-rootless - 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-' - VARIANT="4.8.3-docker-rootless" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.8.3-docker-rootless - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-rootless - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker-rootless - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker-rootless - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-8-3-docker-rootless-go-1-20-11 - 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-' - VARIANT="4.8.3-docker-rootless-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.8.3-docker-rootless-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker-rootless-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.8.3-docker-rootless-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.8.3-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-8-3-docker-rootless-go-1-20-11.outputs.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-4-7-1: - runs-on: ubuntu-latest - 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-4.7.1-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-4.7.1- - ${{ runner.os }}-buildx- - - - 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 }} - - # This step generates the docker tags - - name: Prepare - id: prep-4-7-1 - 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-' - VARIANT="4.7.1" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.7.1 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-7-1-docker - 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-' - VARIANT="4.7.1-docker" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.7.1-docker - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-7-1-docker-go-1-20-11 - 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-' - VARIANT="4.7.1-docker-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.7.1-docker-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-7-1-docker-rootless - 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-' - VARIANT="4.7.1-docker-rootless" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.7.1-docker-rootless - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-rootless - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker-rootless - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker-rootless - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-7-1-docker-rootless-go-1-20-11 - 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-' - VARIANT="4.7.1-docker-rootless-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.7.1-docker-rootless-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker-rootless-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.7.1-docker-rootless-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.7.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-7-1-docker-rootless-go-1-20-11.outputs.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-4-6-1: - runs-on: ubuntu-latest - 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-4.6.1-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-4.6.1- - ${{ runner.os }}-buildx- - - - 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 }} - - # This step generates the docker tags - - name: Prepare - id: prep-4-6-1 - 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-' - VARIANT="4.6.1" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.6.1 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-6-1-docker - 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-' - VARIANT="4.6.1-docker" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.6.1-docker - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-6-1-docker-go-1-20-11 - 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-' - VARIANT="4.6.1-docker-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.6.1-docker-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-6-1-docker-rootless - 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-' - VARIANT="4.6.1-docker-rootless" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.6.1-docker-rootless - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-rootless - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker-rootless - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker-rootless - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-rootless - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - # This step generates the docker tags - - name: Prepare - id: prep-4-6-1-docker-rootless-go-1-20-11 - 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-' - VARIANT="4.6.1-docker-rootless-go-1.20.11" - REF_VARIANT="${REF}-${VARIANT}" - REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" - - # Pass variables to next step - echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT - echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT - echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT - echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - - name: 4.6.1-docker-rootless-go-1.20.11 - Build (PRs) - # Run only on pull requests - if: github.event_name == 'pull_request' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: false - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker-rootless-go-1.20.11 - Build and push (master) - # Run only on master - if: github.ref == 'refs/heads/master' - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.REF_SHA_VARIANT }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - - name: 4.6.1-docker-rootless-go-1.20.11 - Build and push (release) - if: startsWith(github.ref, 'refs/tags/') - uses: docker/build-push-action@v3 - with: - context: variants/4.6.1-docker-rootless-go-1.20.11 - platforms: linux/amd64 - push: true - tags: | - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-4-6-1-docker-rootless-go-1-20-11.outputs.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 - update-draft-release: needs: - build-4-19-0 @@ -5463,11 +3528,6 @@ jobs: - build-4-13-0 - build-4-12-0 - build-4-11-0 - - build-4-10-1 - - build-4-9-1 - - build-4-8-3 - - build-4-7-1 - - build-4-6-1 if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: @@ -5490,11 +3550,6 @@ jobs: - build-4-13-0 - build-4-12-0 - build-4-11-0 - - build-4-10-1 - - build-4-9-1 - - build-4-8-3 - - build-4-7-1 - - build-4-6-1 if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: @@ -5519,11 +3574,6 @@ jobs: - build-4-13-0 - build-4-12-0 - build-4-11-0 - - build-4-10-1 - - build-4-9-1 - - build-4-8-3 - - build-4-7-1 - - build-4-6-1 if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index bd0890d3..16ea3e52 100644 --- a/README.md +++ b/README.md @@ -55,31 +55,6 @@ Dockerized [`code-server`](https://github.com/coder/code-server). | `:4.11.0-docker-go-1.20.11` | [View](variants/4.11.0-docker-go-1.20.11) | | `:4.11.0-docker-rootless` | [View](variants/4.11.0-docker-rootless) | | `:4.11.0-docker-rootless-go-1.20.11` | [View](variants/4.11.0-docker-rootless-go-1.20.11) | -| `:4.10.1` | [View](variants/4.10.1) | -| `:4.10.1-docker` | [View](variants/4.10.1-docker) | -| `:4.10.1-docker-go-1.20.11` | [View](variants/4.10.1-docker-go-1.20.11) | -| `:4.10.1-docker-rootless` | [View](variants/4.10.1-docker-rootless) | -| `:4.10.1-docker-rootless-go-1.20.11` | [View](variants/4.10.1-docker-rootless-go-1.20.11) | -| `:4.9.1` | [View](variants/4.9.1) | -| `:4.9.1-docker` | [View](variants/4.9.1-docker) | -| `:4.9.1-docker-go-1.20.11` | [View](variants/4.9.1-docker-go-1.20.11) | -| `:4.9.1-docker-rootless` | [View](variants/4.9.1-docker-rootless) | -| `:4.9.1-docker-rootless-go-1.20.11` | [View](variants/4.9.1-docker-rootless-go-1.20.11) | -| `:4.8.3` | [View](variants/4.8.3) | -| `:4.8.3-docker` | [View](variants/4.8.3-docker) | -| `:4.8.3-docker-go-1.20.11` | [View](variants/4.8.3-docker-go-1.20.11) | -| `:4.8.3-docker-rootless` | [View](variants/4.8.3-docker-rootless) | -| `:4.8.3-docker-rootless-go-1.20.11` | [View](variants/4.8.3-docker-rootless-go-1.20.11) | -| `:4.7.1` | [View](variants/4.7.1) | -| `:4.7.1-docker` | [View](variants/4.7.1-docker) | -| `:4.7.1-docker-go-1.20.11` | [View](variants/4.7.1-docker-go-1.20.11) | -| `:4.7.1-docker-rootless` | [View](variants/4.7.1-docker-rootless) | -| `:4.7.1-docker-rootless-go-1.20.11` | [View](variants/4.7.1-docker-rootless-go-1.20.11) | -| `:4.6.1` | [View](variants/4.6.1) | -| `:4.6.1-docker` | [View](variants/4.6.1-docker) | -| `:4.6.1-docker-go-1.20.11` | [View](variants/4.6.1-docker-go-1.20.11) | -| `:4.6.1-docker-rootless` | [View](variants/4.6.1-docker-rootless) | -| `:4.6.1-docker-rootless-go-1.20.11` | [View](variants/4.6.1-docker-rootless-go-1.20.11) | Base variants are based on `alpine`, and include `npm 8` and `nodejs 16` (to run `code-server`), `pwsh`, and basic tools. E.g. `4.19.0` diff --git a/generate/definitions/versions.json b/generate/definitions/versions.json index da40d7bf..0cf82629 100644 --- a/generate/definitions/versions.json +++ b/generate/definitions/versions.json @@ -9,15 +9,10 @@ "4.14.1", "4.13.0", "4.12.0", - "4.11.0", - "4.10.1", - "4.9.1", - "4.8.3", - "4.7.1", - "4.6.1" + "4.11.0" ], "versionsChangeScope": "minor", - "versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/coder/code-server/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/v', ''} | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -ge [version]'4.6' }" + "versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/coder/code-server/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/v', ''} | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -ge [version]'4.11' }" }, "docker": { "versions": [