From 4d7f4f5dcdf24e0523f71daeb01b45a82634bdd6 Mon Sep 17 00:00:00 2001 From: Pavel Abramov Date: Thu, 17 Oct 2024 19:20:03 +0200 Subject: [PATCH] Add nightly build to GitHub packages during main build Signed-off-by: Pavel Abramov --- .github/workflows/main_ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index 66834a4..bfdc852 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -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 }}