generated from avior/template-web-astro
Update .github/workflows/build_and_check.yml
All checks were successful
Build, check & Test / run (push) Successful in 2m37s
All checks were successful
Build, check & Test / run (push) Successful in 2m37s
This commit is contained in:
parent
9ffffcd927
commit
fa8f946ff5
25
.github/workflows/build_and_check.yml
vendored
25
.github/workflows/build_and_check.yml
vendored
@ -2,9 +2,13 @@ name: Build, check & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- v*
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
run:
|
||||
@ -14,7 +18,19 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: git.dzeio.com/avior/avior.me
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.dzeio.com
|
||||
@ -28,6 +44,7 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
file: ./Dockerfile.static
|
||||
push: true
|
||||
tags: git.dzeio.com/avior/avior.me:latest
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
x
Reference in New Issue
Block a user