notion2api / .github /workflows /docker-image.yml
bibibi12345's picture
Create docker-image.yml
6419c29 unverified
raw
history blame contribute delete
626 Bytes
name: Docker Image CI
permissions: write-all
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/notion2api:latest
- name: Push the Docker image
run: docker push ghcr.io/${{ github.repository_owner }}/notion2api:latest