Skip to content

Reverted ghcr-publish.yml #11

Reverted ghcr-publish.yml

Reverted ghcr-publish.yml #11

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
docker login --username coinmoles --password ${{ secrets.PERSONAL_ACCESS_TOKEN }} ghcr.io
docker build . --tag ghcr.io/coinmoles/promotion-bot:$(date '+%Y-%m-%d')
docker push ghcr.io/coinmoles/promotion-bot:$(date '+%Y-%m-%d')