Skip to content

Commit

Permalink
Reactredo (#8)
Browse files Browse the repository at this point in the history
* 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
bensoer authored Apr 14, 2023
1 parent 60ce79d commit b9d1469
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-and-deploy-docker.yml
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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit b9d1469

Please sign in to comment.