Skip to content

Bruteforce protection & new dockerhub config #25

Bruteforce protection & new dockerhub config

Bruteforce protection & new dockerhub config #25

name: Build and Push Docker Image
on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Step 3: Build the Docker image
- name: Build Docker Image
run: |
docker build -t dumbwareio/dumbdrop:latest .
# Step 4: Push the Docker image to Docker Hub
- name: Push Docker Image
run: |
docker push dumbwareio/dumbdrop:latest