Skip to content

test - Delete this file as it is just for testing #1

test - Delete this file as it is just for testing

test - Delete this file as it is just for testing #1

Workflow file for this run

name: CI Docker Build and Push for Frontend Services
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: # This enables manual triggering of the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to Docker Hub
run: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: docker build -t my-image-name .
- name: Push Docker image to Docker Hub
run: docker push my-image-name