Skip to content

Add dockerfile and github actions to deploy it #1

Add dockerfile and github actions to deploy it

Add dockerfile and github actions to deploy it #1

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker image
run: docker build . --file Dockerfile --tag abbadabbabot
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: docker push abbadabbabot
- name: Trigger Watchtower rebuild
run: |
curl -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" ${{ secrets.WATCHTOWER_URL }}