From 4f16c9869dfb7e9117c16b367931a2ce659665e7 Mon Sep 17 00:00:00 2001 From: Ray Lyon <36998292+skoobasteeve@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:41:29 -0400 Subject: [PATCH] upload image test --- .github/workflows/docker-image.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8faf2ad..fc5a8d4 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,5 +14,15 @@ jobs: 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