Skip to content

permissions added to workflow #3

permissions added to workflow

permissions added to workflow #3

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [alfworld-base-adapted]
paths:
- "Dockerfile-alf"
- ".github/workflows/docker-build.yml"
workflow_dispatch: # ← allows manual trigger from GitHub UI
jobs:
build:
runs-on: ubuntu-latest # ← native linux/amd64, no emulation
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile-alf
push: true
tags: ghcr.io/amit502/reflexion:alf