Skip to content

Enhanced security

Enhanced security #5

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches:
- main
- development_branch
pull_request:
branches:
- main
- development_branch
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Check out the code
uses: actions/checkout@v3
# Step 2: Log in to Docker Hub
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
# Step 3: Run the build and push script
- name: Build and push Docker images
run: |
chmod +x ./build_and_push_services_dev.sh
./build_and_push_services_dev.sh