build: refactor build workflows (#7)
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -6,11 +6,6 @@ on:
|
|||||||
- '*'
|
- '*'
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- edited
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -102,7 +97,7 @@ jobs:
|
|||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
tags: latest
|
tags: latest
|
||||||
tag_with_ref: true
|
tag_with_ref: true
|
||||||
tag_with_sha: true
|
tag_with_sha: false
|
||||||
always_pull: true
|
always_pull: true
|
||||||
|
|
||||||
# docker build (master)
|
# docker build (master)
|
||||||
@@ -116,7 +111,7 @@ jobs:
|
|||||||
repository: l3uddz/nabarr/nabarr
|
repository: l3uddz/nabarr/nabarr
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
tags: master
|
tags: master
|
||||||
tag_with_sha: true
|
tag_with_sha: false
|
||||||
always_pull: true
|
always_pull: true
|
||||||
|
|
||||||
# docker build (branch)
|
# docker build (branch)
|
||||||
|
|||||||
2
.github/workflows/cleanup.yml
vendored
2
.github/workflows/cleanup.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
owner: ${{ github.event.repository.owner.name }}
|
owner: l3uddz
|
||||||
repo: ${{ github.event.repository.name }}
|
repo: ${{ github.event.repository.name }}
|
||||||
tag: ${{ steps.dockertag.outputs.replaced }}
|
tag: ${{ steps.dockertag.outputs.replaced }}
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user