Skip to content

Commit

Permalink
Jose/dockerhub buildpush (#55) (#56)
Browse files Browse the repository at this point in the history
* Jose/dockerhub buildpush (#55)

* Build and Push to DockerHub

This PR will build the docker image and then push it to DockerHub

* only build for a release

* fixing formatting issue

* Jose/dockerhub buildpush (#57)

* Build and Push to DockerHub

This PR will build the docker image and then push it to DockerHub

* only build for a release

* fixing formatting issue

* have to separate out docker load and push
  • Loading branch information
josev814 authored Feb 20, 2024
1 parent 2270006 commit ddd1442
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/login-action@v3.0.0
- name: Log INTO Docker
with:
username: ${{ secrets.DOCKERHUBUSER }}
password: ${{ secrets.DOCKERHUBAUTHKEY }}
Expand All @@ -26,6 +25,13 @@ jobs:
context: .
file: ./reactjs/dockerfile-frontend
load: true
tags: josev814/uncfsu_csc490_react:latest
cache-from: josev814/uncfsu_csc490_react:latest
- name: Docker React Push
uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./reactjs/dockerfile-frontend
push: true
tags: josev814/uncfsu_csc490_react:latest
cache-from: josev814/uncfsu_csc490_react:latest
Expand All @@ -35,6 +41,13 @@ jobs:
context: .
file: ./BuildTools/dockerfile-backend
load: true
tags: josev814/uncfsu_csc490_django:latest
cache-from: josev814/uncfsu_csc490_django:latest
- name: Push the Docker Django image
uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./BuildTools/dockerfile-backend
push: true
tags: josev814/uncfsu_csc490_django:latest
cache-from: josev814/uncfsu_csc490_django:latest

0 comments on commit ddd1442

Please sign in to comment.