Simpler approach to lowercasing

Revert adding docker/metadata-action
This commit is contained in:
BlueGradientHorizon 2026-04-21 18:32:28 +03:00
parent 1f662b0489
commit e170a6e9df
2 changed files with 13 additions and 18 deletions

View file

@ -30,19 +30,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ github.repository }}/ci
tags: type=raw,value=latest
- id: img
env:
REPO: ${{ github.repository }}
run: echo "image=ghcr.io/${REPO,,}/ci:latest" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .github/docker/ci
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.img.outputs.image }}
cache-from: type=gha
cache-to: type=gha,mode=max

View file

@ -15,20 +15,18 @@ jobs:
setup:
runs-on: ubuntu-latest
outputs:
image_name: ${{ steps.meta.outputs.tags }}
image: ${{ steps.img.outputs.image }}
steps:
- name: Extract metadata
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ github.repository }}/ci
tags: type=raw,value=latest
- id: img
env:
REPO: ${{ github.repository }}
run: echo "image=ghcr.io/${REPO,,}/ci:latest" >> "$GITHUB_OUTPUT"
lint:
needs: setup
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image_name }}
image: ${{ needs.setup.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
@ -123,7 +121,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image_name }}
image: ${{ needs.setup.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
@ -165,7 +163,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image_name }}
image: ${{ needs.setup.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}