Skip to content

Commit

Permalink
github actions for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
PondiB committed Oct 25, 2023
1 parent be76b93 commit ff0c182
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docker-compose-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: docker-compose-workflow
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run docker-compose
run: docker-compose up -d
27 changes: 27 additions & 0 deletions .github/workflows/docker-compose-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: docker-compose-workflow
on:
push:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: brianpondi/openeosits:latest

- name: Run docker-compose
run: docker-compose up -d

0 comments on commit ff0c182

Please sign in to comment.