Skip to content

Fix env variables on workflow. #3

Fix env variables on workflow.

Fix env variables on workflow. #3

Workflow file for this run

name: Build Dokerfile
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghrc.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set Owner name to LowerCase
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
echo "REPOSITORY_LC=${REPOSITORY,,}" >>${GITHUB_ENV}
env:
OWNER: "${{ github.repository_owner }}"
REPOSITORY: "${{ github.repository }}"
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/$OWNER_LC/$REPOSITORY_LC:latest