Skip to content

Commit

Permalink
Merge pull request #69 from AstroPlant/docker-action
Browse files Browse the repository at this point in the history
Create docker-images.yml
  • Loading branch information
BasWilson authored Nov 25, 2021
2 parents fa98a19 + b4f6c77 commit 6417d81
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Docker Image CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
login:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

0 comments on commit 6417d81

Please sign in to comment.