Skip to content

Set SESSION_COOKIE_SECURE in prod #11

Set SESSION_COOKIE_SECURE in prod

Set SESSION_COOKIE_SECURE in prod #11

name: Build and push Docker image
on:
push:
branches:
- "main"
- "dev"
tags:
- "*"
pull_request:
branches:
- "dev"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
lint:
uses: ./.github/workflows/lint.yml
build-and-push-image:
runs-on: ubuntu-latest
needs: [lint]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to the container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}