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/[email protected]
- 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/[email protected]
with:
context: .
push: true
tags: ghcr.io/jonathanalgar/alttexter:${{ github.ref_name }}