Skip to content

Commit

Permalink
Add nightly build to GitHub packages during main build
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart committed Oct 18, 2024
1 parent 78c3fd6 commit 4d7f4f5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,30 @@ jobs:

- name: build and test
uses: ./.github/actions/build-and-test

# publishing latest commit from master
publish-nighltly:
runs-on: ubuntu-latest
needs: build-and-test

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/uncledecart/nkvn:latest
ghcr.io/uncledecart/nkvn:${{ github.sha }}

0 comments on commit 4d7f4f5

Please sign in to comment.