Skip to content

Commit

Permalink
chore: Update Docker build and push workflows for all services
Browse files Browse the repository at this point in the history
  • Loading branch information
djangbahevans committed Aug 7, 2024
1 parent 04b3608 commit 4ae1b57
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/frontend-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and push docker image of the frontend when changes are pushed to the main branch

on:
push:
branches:
- main
paths:
- 'frontend/**'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Checkout code
uses: actions/checkout@v4

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/gateway-srv:latest

0 comments on commit 4ae1b57

Please sign in to comment.