Skip to content

Merge pull request #51 from padlocks/dev #47

Merge pull request #51 from padlocks/dev

Merge pull request #51 from padlocks/dev #47

Workflow file for this run

name: Docker Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment: deployment
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: docker build -t fishing-bot .
- name: Push Docker image
run: |
docker tag fishing-bot padlocks/fishing-bot:latest
docker push padlocks/fishing-bot:latest