admin perm #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / CUDA12.0 Docker image build and push to ghcrInvalid workflow file
|
||
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}} |