Skip to content

add permissions

add permissions #3

Workflow file for this run

name: ci
on:
push:
branches: main
tags:
- 'v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check Out Repo
uses: actions/checkout@v4.1.1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker image
uses: docker/build-push-action@v5.1.0
with:
context: .
push: true
tags: ghcr.io/jonathanalgar/alttexter:${{ github.ref_name }}