Files
telegram-moviebot/.github/workflows/docker-image.yml
2022-04-05 19:41:29 -04:00

29 lines
630 B
YAML

name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
env:
github_pat: ${{ secrets.CONTAINER_PAT }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag telegram-moviebot:$(date +%s)
- name: Authenticate to the container registry
run: echo $github_pat | docker login ghcr.io -u skoobasteeve --password-stdin
- name: Push the image to container registry
run: docker push ghcr.io/skoobasteeve/telegram-moviebot:latest