From 6f7d9f4d70988e3006ac95104a145e3214617043 Mon Sep 17 00:00:00 2001 From: Michael Wilkerson Date: Tue, 18 Oct 2022 09:51:48 -0700 Subject: [PATCH] try #13 changing docker mirror --- .github/workflows/nightly.yml | 52 +++++++++-------------------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index eac1979af0..deab25cb38 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -79,49 +79,23 @@ jobs: name: ${{ matrix.pkg_name }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip path: ${{ matrix.component}}/out/${{ matrix.pkg_name }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip + # upload dev docker image dev-upload-docker: - if: github.repository_owner == 'hashicorp' # Do not run on forks as this requires secrets - needs: [ get-product-version, build-distros ] runs-on: ubuntu-latest - strategy: - matrix: - arch: [ "amd64" ] env: - repo: ${{ github.event.repository.name }} - version: ${{ needs.get-product-version.outputs.product-version }} + DOCKER_CLI_EXPERIMENTAL: enabled steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: - name: consul-cni_${{ needs.get-product-version.outputs.product-version }}_linux_${{ matrix.arch }}.zip - path: control-plane/dist/cni/linux/${{ matrix.arch }} - - name: extract consul-cni zip - env: - ZIP_LOCATION: control-plane/dist/cni/linux/${{ matrix.arch }} - run: | - cd "${ZIP_LOCATION}" - unzip -j *.zip - - name: Docker Build (Action) - uses: hashicorp/actions-docker-build@v1 - with: - smoke_test: | - TEST_VERSION="$(docker run "${IMAGE_NAME}" consul-k8s-control-plane version | awk '{print $2}')" - if [ "${TEST_VERSION}" != "v${version}" ]; then - echo "Test FAILED" - exit 1 - fi - echo "Test PASSED" - version: ${{ env.version }} - target: release-default - arch: ${{ matrix.arch }} - pkg_name: consul-k8s-control-plane_${{ env.version }} - bin_name: consul-k8s-control-plane - workdir: control-plane - tags: | - docker.io/hashicorp/${{ env.repo }}-control-plane:${{ env.version }} - dev_tags: | - hashicorppreview/${{ env.repo }}-control-plane:${{ env.version }} - docker.io/hashicorppreview/${{ env.repo }}-control-plane:${{ env.version }}-${{ github.sha }} + - checkout + # get consul-k8s binary + - attach_workspace: + at: . + - run: sudo apt-get update + - run: sudo apt-get install -y qemu-user-static + - run: docker buildx create --use + - run: + name: make ci.dev-docker + working_directory: ./control-plane + command: make ci.dev-docker acceptance: needs: dev-upload-docker