Skip to content

reafactor: migrate from raw sql to orm (#24) #95

reafactor: migrate from raw sql to orm (#24)

reafactor: migrate from raw sql to orm (#24) #95

Workflow file for this run

name: Build and push Docker image to GHCR
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
cache-from: type=registry,ref=ghcr.io/mr-robot-discord-bot/mr-robot:latest
cache-to: type=inline
tags: |
ghcr.io/mr-robot-discord-bot/mr-robot:latest
ghcr.io/mr-robot-discord-bot/mr-robot:${{ github.sha }}