feat: build docker image tagged "edge" on push to main branch (#3026)
* feat: build docker image on push to main branch * feat: add tag "edge" for main when building the docker image * feat: update name of build container workflow
This commit is contained in:
parent
0e621ae34e
commit
4a070a9d61
|
|
@ -1,9 +1,11 @@
|
||||||
name: Create and publish a container image
|
name: Docker image build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- v*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
|
|
@ -33,6 +35,7 @@ jobs:
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
|
type=edge,branch=main
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue