Skip to content

Commit

Permalink
Create build.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <116948796+NxPKG@users.noreply.github.com>
  • Loading branch information
NxPKG authored Mar 30, 2024
1 parent 5da53b0 commit df84afa
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Docker image
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to GitHub Docker Registry
uses: docker/#-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository }}:latest

0 comments on commit df84afa

Please # to comment.