Skip to content

Commit

Permalink
Merge pull request #151 from Frnn4268/Frnn
Browse files Browse the repository at this point in the history
Adding new Dockerhub build and push images
  • Loading branch information
Frnn4268 authored Oct 28, 2024
2 parents 0cf6e67 + 5a04f47 commit cab6146
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/backend-build-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: backend-build-push
on:
push:
paths:
- 'backend/**'

branches:
- master
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Dockerhub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: Docker Build and Publish
uses: docker/build-push-action@v2
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: frnn4268/easyparksystem-backend:${{github.run_number}}
34 changes: 34 additions & 0 deletions .github/workflows/frontend-build-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: frontend-build-push
on:
push:
paths:
- 'frontend/**'

branches:
- master
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Dockerhub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: Docker Build and Publish
uses: docker/build-push-action@v2
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: frnn4268/easyparksystem-frontend:${{github.run_number}}

0 comments on commit cab6146

Please sign in to comment.