Skip to content

fix registry and perms #4

fix registry and perms

fix registry and perms #4

Workflow file for this run

name: Build and Push Docker Image
permissions:
contents: write
packages: write
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build Docker image
run: |
docker build -t ghcr.io/vectordotdev/log-generator:v1.0 .
- name: Push Docker image
run: |
docker push ghcr.io/vectordotdev/log-generator:v1.0