From eb79892eb9db41a610e12b653509a6ec71eaf5fb Mon Sep 17 00:00:00 2001 From: Masaru Hoshi Date: Thu, 1 Jun 2023 08:48:43 -0400 Subject: [PATCH] build for go-1.18 Signed-off-by: Masaru Hoshi --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb343517..8cc0e575 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,40 @@ jobs: docker push qlik/go-build docker push qlik/go-build:$(date +'%Y-%m-%d') if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles' + docker-build-go-build-1.18: name: docker build go-build-1.18 + runs-on: ubuntu-latest + env: + DOCKER_BUILDKIT: "1" + steps: + - name: docker version + run: docker version + - uses: actions/checkout@master + - name: build + run: docker build --progress plain --iidfile go-build-1.18/image.iid -f go-build-1.18/Dockerfile go-build-1.18/ + - name: tag + run: | + docker tag $(< go-build-1.18/image.iid) ghcr.io/qlik-oss/go-build:1.18 + docker tag $(< go-build-1.18/image.iid) ghcr.io/qlik-oss/go-build:1.18-$(date +'%Y-%m-%d') + docker tag $(< go-build-1.18/image.iid) qlik/go-build:1.18 + docker tag $(< go-build-1.18/image.iid) qlik/go-build:1.18-$(date +'%Y-%m-%d') + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GHCR_TOKEN }} + if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles' + - name: login to DockerHub + run: | + echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin + if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles' + - name: docker push + run: | + docker push ghcr.io/qlik-oss/go-build:1.18 + docker push ghcr.io/qlik-oss/go-build:1.18-$(date +'%Y-%m-%d') + docker push qlik/go-build:1.18 + docker push qlik/go-build:1.18-$(date +'%Y-%m-%d') + if: github.ref == 'refs/heads/master' && github.repository == 'qlik-oss/dockerfiles' docker-build-node-build: name: docker build node-build runs-on: ubuntu-latest