Skip to content

Docker

Docker #7

Workflow file for this run

name: Docker
on:
push:
tags: ['v*.*.*']
jobs:
build-and-push-image:

Check failure on line 8 in .github/workflows/docker-publish.yml

View workflow run for this annotation

GitHub Actions / Docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker-publish.yml (Line: 8, Col: 3): Error calling workflow 'dtekcth/workflows/.github/workflows/docker-publish.yml@v1.0.0'. The nested job 'build' is requesting 'packages: write', but is only allowed 'packages: read'.
uses: dtekcth/workflows/.github/workflows/docker-publish.yml@v1.0.0
#env:
# REGISTRY: ghcr.io
# IMAGE_NAME: ${{ github.repository }}
#
#jobs:
# build:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Log into registry ${{ env.REGISTRY }}
# uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Extract Docker metadata
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
#
# - name: Build and push Docker image
# id: build-and-push
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max