mirror of
https://github.com/g3rv4/GetMoarFediverse.git
synced 2024-11-21 15:13:08 +01:00
Fix build so that it runs on PRs (#10)
This commit is contained in:
parent
518b51fcf6
commit
ac83a1f8a9
30
.github/workflows/build copy.yml.original
vendored
30
.github/workflows/build copy.yml.original
vendored
@ -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"
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: build
|
||||
on:
|
||||
pull_request:
|
||||
types: [ synchronize ]
|
||||
types: [ synchronize, opened ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
Loading…
Reference in New Issue
Block a user