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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
@ -14,7 +18,19 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Login to Docker Hub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.dzeio.com
|
registry: git.dzeio.com
|
||||||
@ -28,6 +44,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./Dockerfile.static
|
file: ./Dockerfile.static
|
||||||
push: true
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
tags: git.dzeio.com/avior/avior.me:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
x
Reference in New Issue
Block a user