Skip to content

Fix for permissions issues after adding GitHub action to insert the d… #43

Fix for permissions issues after adding GitHub action to insert the d…

Fix for permissions issues after adding GitHub action to insert the d… #43

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4 # Update to the latest version compatible with Node.js 20
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build . --file Dockerfile --tag ghcr.io/genpat-it/spread:latest
docker push ghcr.io/genpat-it/spread:latest