Skip to content

add

add #1

Workflow file for this run

name: Build Docker Image
on:
workflow_dispatch:
push:
branches:
- "**"
paths:
- "**"
permissions:
actions: read
checks: write
contents: write
deployments: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Compute short sha
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and push image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}/supabase-auth:latest
ghcr.io/${{ github.repository }}/supabase-auth:${{ steps.vars.outputs.sha_short }}