From ac83a1f8a93bcf368d13086a788a4eec342723db Mon Sep 17 00:00:00 2001 From: Gervasio Marchand Date: Tue, 20 Dec 2022 18:09:32 -0800 Subject: [PATCH] Fix build so that it runs on PRs (#10) --- .github/workflows/build copy.yml.original | 30 ----------------------- .github/workflows/build.yml | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 .github/workflows/build copy.yml.original diff --git a/.github/workflows/build copy.yml.original b/.github/workflows/build copy.yml.original deleted file mode 100644 index d6729e8..0000000 --- a/.github/workflows/build copy.yml.original +++ /dev/null @@ -1,30 +0,0 @@ -name: build -on: - push: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 # get entire git tree, required for nerdbank gitversioning - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push the Docker image - shell: pwsh - run: | - Push-Location src - $version = (nbgv get-version -f json | ConvertFrom-Json).SimpleVersion - Write-Host "Version $version" - Pop-Location - - docker build . --tag ghcr.io/g3rv4/getmoarfediverse:latest --tag "ghcr.io/g3rv4/getmoarfediverse:$version" - docker push ghcr.io/g3rv4/getmoarfediverse:latest - docker push "ghcr.io/g3rv4/getmoarfediverse:$version" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 075b155..d6aa5b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: build on: pull_request: - types: [ synchronize ] + types: [ synchronize, opened ] jobs: build: