Files
nodecrypt/.github/workflows/docker-image.yml
T
Workflow config file is invalid. Please check your config file: yaml: construct errors: line 1: (Line: 23, Col: 17): Unrecognized function: 'toLower'. Located at position 1 within expression: toLower(github.repository)

26 lines
660 B
YAML

name: Docker Build and Push
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/${{ toLower(github.repository) }}:latest
ghcr.io/${{ toLower(github.repository) }}:${{ github.sha }}