Skip to content

feat: add makefile with docker commands #5

feat: add makefile with docker commands

feat: add makefile with docker commands #5

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- master
- dev
workflow_dispatch:
env:
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}/bot
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -t $IMAGE_NAME . -f Dockerfile-bot
- name: Push Docker image to ghcr.io
run: docker push $IMAGE_NAME