mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
remove separate pr name
This commit is contained in:
parent
6281da9159
commit
fd06883c41
1 changed files with 4 additions and 17 deletions
21
.github/workflows/build-and-test.yml
vendored
21
.github/workflows/build-and-test.yml
vendored
|
|
@ -29,22 +29,8 @@ jobs:
|
|||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker meta - pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
id: meta_pull
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}/build-container-installer
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Docker meta - pull request
|
||||
if: github.event_name != 'pull_request'
|
||||
id: meta_main
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
|
|
@ -60,7 +46,8 @@ jobs:
|
|||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
containerfiles: Containerfile
|
||||
tags: ${{ steps.meta_pull.outputs.tags || steps.meta_main.outputs.tags }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Push image
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue