Skip to content

Commit

Permalink
Update docker-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BasWilson authored Nov 25, 2021
1 parent 2b5ba45 commit e1e3049
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e1e3049

Please sign in to comment.