Skip to content

Merge pull request #3 from sown/api #6

Merge pull request #3 from sown/api

Merge pull request #3 from sown/api #6

Workflow file for this run

name: publish
on:
push:
branches:
- main
jobs:
publish-docker-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
docker build . --tag ghcr.io/sown/kmibot:latest
docker run ghcr.io/sown/kmibot:latest
docker push ghcr.io/sown/kmibot:latest