Skip to content

Merge branch 'main' into stable #51

Merge branch 'main' into stable

Merge branch 'main' into stable #51

Workflow file for this run

name: backend
on:
workflow_dispatch:
push:
paths:
- 'backend/**'
branches:
- main
- stable
defaults:
run:
working-directory: backend
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-backend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: "backend"
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref == 'refs/heads/stable' && 'stable' || 'latest' }}
labels: ${{ steps.meta.outputs.labels }}