This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
update some minor things #125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build backend | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docker: | |
name: Docker build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get Docker version | |
run: docker --version | |
- name: Docker Login | |
uses: docker/login-action@v1 | |
with: | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
registry: "ghcr.io" | |
- name: downcase repository owner | |
run: | | |
echo REPO=$(echo ${{github.repository_owner}} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV | |
- name: Build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
file: "./Dockerfile" | |
tags: ghcr.io/${{env.REPO}}/beziapp/backend:latest | |
push: true |