Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
claygorman authored Dec 11, 2023
1 parent de80cb7 commit 775bdc4
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,27 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build the backend Docker image
run: docker build ./backend --file Dockerfile --tag openpro-backend:$(date +%s)
- name: Build the frontend Docker image
run: docker build ./frontend --file Dockerfile --tag openpro-backend:$(date +%s)

- name: Build the backend Docker image and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: ghcr.io/openpro-io/openpro-backend
registry: ghcr.io
directory: backend
enableBuildKit: true
addLatest: true
addTimestamp: true
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build the frontend Docker image and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: ghcr.io/openpro-io/openpro-frontend
registry: ghcr.io
directory: frontend
enableBuildKit: true
addLatest: true
addTimestamp: true
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

0 comments on commit 775bdc4

Please sign in to comment.