-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changed token * wrote my own actions to build and publish * forgot the v in the version number * switched to using classic github token * added better tagging and label management
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
name: 'Build And Publish Latest' | ||
on: | ||
push: | ||
branches: ['master'] | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*.*.*' | ||
|
||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
@@ -31,6 +35,18 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=schedule | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=sha | ||
labels: | | ||
org.opencontainers.image.title=debenstack-profile | ||
org.opencontainers.image.description=Debenstack Profile Container | ||
org.opencontainers.image.vendor=debenstack | ||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
|