From bbf7545706f2b003eb44ad0d1ee310c6fdba9f24 Mon Sep 17 00:00:00 2001 From: Mars Lan Date: Fri, 29 May 2020 16:31:59 -0700 Subject: [PATCH] build: parallelize docker image builds --- .github/workflows/docker-frontend.yml | 18 ++++++++++ .github/workflows/docker-gms.yml | 18 ++++++++++ .github/workflows/docker-mae-consumer.yml | 18 ++++++++++ .github/workflows/docker-mce-consumer.yml | 18 ++++++++++ .github/workflows/docker.yml | 43 ----------------------- 5 files changed, 72 insertions(+), 43 deletions(-) create mode 100644 .github/workflows/docker-frontend.yml create mode 100644 .github/workflows/docker-gms.yml create mode 100644 .github/workflows/docker-mae-consumer.yml create mode 100644 .github/workflows/docker-mce-consumer.yml delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker-frontend.yml b/.github/workflows/docker-frontend.yml new file mode 100644 index 0000000000000..f8542a09f3f47 --- /dev/null +++ b/.github/workflows/docker-frontend.yml @@ -0,0 +1,18 @@ +name: Build and publish frontend docker images to docker hub +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + dockerfile: ./docker/frontend/Dockerfile + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: linkedin/datahub-frontend + tags: latest diff --git a/.github/workflows/docker-gms.yml b/.github/workflows/docker-gms.yml new file mode 100644 index 0000000000000..750dee43aa94c --- /dev/null +++ b/.github/workflows/docker-gms.yml @@ -0,0 +1,18 @@ +name: Build and publish gms docker images to docker hub +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + dockerfile: ./docker/gms/Dockerfile + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: linkedin/datahub-gms + tags: latest diff --git a/.github/workflows/docker-mae-consumer.yml b/.github/workflows/docker-mae-consumer.yml new file mode 100644 index 0000000000000..da324d581a46e --- /dev/null +++ b/.github/workflows/docker-mae-consumer.yml @@ -0,0 +1,18 @@ +name: Build and publish mae-consumer docker images to docker hub +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + dockerfile: ./docker/mae-consumer/Dockerfile + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: linkedin/datahub-mae-consumer + tags: latest diff --git a/.github/workflows/docker-mce-consumer.yml b/.github/workflows/docker-mce-consumer.yml new file mode 100644 index 0000000000000..95457696ced17 --- /dev/null +++ b/.github/workflows/docker-mce-consumer.yml @@ -0,0 +1,18 @@ +name: Build and publish mce-consumer docker images to docker hub +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + dockerfile: ./docker/mce-consumer/Dockerfile + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: linkedin/datahub-mce-consumer + tags: latest diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 5d50aace7d779..0000000000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Build and publish docker images to docker hub -on: - push: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - uses: docker/build-push-action@v1 - with: - dockerfile: ./docker/gms/Dockerfile - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: linkedin/datahub-gms - tags: latest - - - uses: docker/build-push-action@v1 - with: - dockerfile: ./docker/mce-consumer/Dockerfile - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: linkedin/datahub-mce-consumer - tags: latest - - - uses: docker/build-push-action@v1 - with: - dockerfile: ./docker/mae-consumer/Dockerfile - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: linkedin/datahub-mae-consumer - tags: latest - - - uses: docker/build-push-action@v1 - with: - dockerfile: ./docker/frontend/Dockerfile - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: linkedin/datahub-frontend - tags: latest