Skip to content

Add MODERATION_MUTE to Moderator role #69

Add MODERATION_MUTE to Moderator role

Add MODERATION_MUTE to Moderator role #69

name: "Docker build and push (image: backend-tasks)"
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 10
- name: Login to ghcr registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Prepare version info
run: |
echo "LATEST_COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Write version file
run: echo "${{ env.LATEST_COMMIT_SHA }}" > version.txt
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-tasks
tags: |
ghcr.io/studentiunimi/backend-tasks:${{ env.LATEST_COMMIT_SHA }}
ghcr.io/studentiunimi/backend-tasks:latest
push: true