Skip to content

Commit

Permalink
Merge pull request #15 from PondiB/develop
Browse files Browse the repository at this point in the history
 CI to update an image on dockerhub
  • Loading branch information
PondiB authored Apr 27, 2023
2 parents 00aa76c + a6fd446 commit 632d832
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: docker-compose-workflow
on:
push:
branches: [ "main", "develop" ]
branches: [ "develop" ]
pull_request:
branches: [ "main", "develop" ]
branches: [ "develop" ]

jobs:
test:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/docker-compose-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: docker-compose-workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-20.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/openeocubes:latest

- name: Run docker-compose
run: docker-compose up -d
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ RUN Rscript -e "remotes::install_local('/opt/dockerfiles',dependencies=TRUE)"
# cmd or entrypoint for startup
CMD ["R", "-q", "--no-save", "-f /opt/dockerfiles/Dockerfiles/start.R"]

EXPOSE 8000
EXPOSE 8000

0 comments on commit 632d832

Please sign in to comment.