Skip to content

admin perm

admin perm #23

name: CUDA12.0 Docker image build and push to ghcr
on:
push:
pull_request:
branches: [master]
env:
REGISRTY: ghcr.io
IMAGE_NAME: ${{github.repository}}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: admin

Check failure on line 16 in .github/workflows/ghcr_cuda120_action.yml

View workflow run for this annotation

GitHub Actions / CUDA12.0 Docker image build and push to ghcr

Invalid workflow file

The workflow is not valid. .github/workflows/ghcr_cuda120_action.yml (Line: 16, Col: 17): Unexpected value 'admin'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/cuda120/Dockerfile
push: true
tags: latest
#no-cache: true
labels: ${{steps.meta.outputs.labels}}