Skip to content

add github actions

add github actions #1

name: Docker
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action
- name: Build and push
uses: docker/build-push-action
with:
context: ./
push: true
tags: ghcr.io/${{ github.repository }}/efbackupbot:latest