From e1e30491ae502b67333c561eb56d5cef83c2b5d6 Mon Sep 17 00:00:00 2001 From: Bas Wilson Date: Thu, 25 Nov 2021 15:44:32 +0100 Subject: [PATCH] Update docker-images.yml --- .github/workflows/docker-images.yml | 40 ++++++++++------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 8605e14..55fe5f1 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -7,37 +7,25 @@ on: branches: [ master ] jobs: - login: + build: runs-on: ubuntu-latest steps: - - - name: Login to Docker Hub + - name: Checkout + uses: actions/checkout@v2 + + - name: Login to Docker Hub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} logout: false - community-platform: - - name: Build & push community-platform - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build and push the Docker image - run: | - docker build . --file Dockerfile.production --tag astroplant/astroplant-community-platform:latest - docker push astroplant/astroplant-community-platform:latest - - community-api: - - name: Build & push community-api - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build and push the Docker image - run: | - docker build . --file api/Dockerfile.production --tag astroplant/astroplant-community-api:latest - docker push astroplant/astroplant-community-api:latest + - name: Build and push the platform image + run: | + docker build . --file Dockerfile.production --tag astroplant/astroplant-community-platform:latest + docker push astroplant/astroplant-community-platform:latest + + - name: Build and push the community api image + run: | + docker build . --file api/Dockerfile.production --tag astroplant/astroplant-community-api:latest + docker push astroplant/astroplant-community-api:latest