diff --git a/.github/workflows/docker-edge.yml b/.github/workflows/docker-edge.yml index 3aa8a8d944..e9bc7cd6c6 100644 --- a/.github/workflows/docker-edge.yml +++ b/.github/workflows/docker-edge.yml @@ -22,9 +22,9 @@ permissions: env: IMAGES: | - actualbudget/actual-server - ghcr.io/actualbudget/actual-server - ghcr.io/actualbudget/actual + ${{ !github.event.repository.fork && 'actualbudget/actual-server' || '' }} + ghcr.io/${{ github.repository_owner }}/actual-server + ghcr.io/${{ github.repository_owner }}/actual # Creates the following tags: # - actual-server:edge @@ -34,7 +34,7 @@ env: jobs: build: - if: ${{ github.event.repository.fork == false }} + if: github.event_name == 'workflow_dispatch' || !github.event.repository.fork name: Build Docker image runs-on: ubuntu-latest strategy: @@ -60,7 +60,7 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v3 - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && !github.event.repository.fork with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/upcoming-release-notes/5404.md b/upcoming-release-notes/5404.md new file mode 100644 index 0000000000..afd72cc28a --- /dev/null +++ b/upcoming-release-notes/5404.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [Jackenmen] +--- + +Allow running the GitHub Actions workflow for building the Docker edge image on forks when using the workflow dispatch