prenova strani "Vsi uporabniki" #60
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 frontend | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docker: | |
name: Docker build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Docker version | |
run: docker --version | |
- name: Docker Login | |
uses: docker/login-action@v3 | |
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@v6 | |
with: | |
file: "./Dockerfile" | |
tags: ghcr.io/${{env.REPO}}/frontend:latest | |
push: true |