Skip to content

Commit

Permalink
build for go-1.18
Browse files Browse the repository at this point in the history
Signed-off-by: Masaru Hoshi <[email protected]>
  • Loading branch information
masaruhoshi committed Jun 1, 2023
1 parent 1d282d5 commit eb79892
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb79892

Please sign in to comment.