From c98ec754d1586fc54cdd0742a02ac801272cf760 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Sun, 4 Aug 2024 12:28:44 +0200 Subject: [PATCH] Publish docker images to GitHub container registry --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3c36272c3..1f756ef1e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -181,6 +181,7 @@ jobs: with: images: | briansimulator/brian + ghcr.io/brian-team/brian flavor: latest=true tags: | # type=semver,pattern={{raw}} @@ -205,6 +206,13 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + if: ${{ github.repository == 'brian-team/brian2' && github.actor != 'dependabot[bot]'}} + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: load Linux x86 distribution 📦 uses: actions/download-artifact@v4 with: