Skip to content

Commit 33b2af7

Browse files
committed
dockerpush
1 parent b79e9cb commit 33b2af7

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77
pull_request:
8+
release:
9+
types:
10+
- created
811

912
jobs:
1013
test:
@@ -35,3 +38,31 @@ jobs:
3538
- uses: coverallsapp/github-action@master
3639
with:
3740
github-token: ${{ secrets.github_token }}
41+
42+
- id: docker_meta
43+
uses: crazy-max/ghaction-docker-meta@v1
44+
with:
45+
images: appvia/githubUserManager/githubUserManager
46+
tag-sha: true
47+
tag-latest: true
48+
tag-semver: |
49+
{{version}}
50+
label-custom: |
51+
org.opencontainers.image.vendor=appvia
52+
org.opencontainers.image.documentation=https://github.com/appvia/githubUserManager
53+
org.opencontainers.image.authors=Chris Nesbitt-Smith <chris.nesbitt-smith@appvia.io>
54+
org.opencontainers.image.url=https://github.com/appvia/githubUserManager
55+
maintainer=appvia
56+
57+
58+
- name: Push to GitHub Packages
59+
uses: docker/build-push-action@v2
60+
with:
61+
push: ${{ github.event_name != 'pull_request' }}
62+
tags: ${{ steps.docker_meta.outputs.tags }}
63+
labels: ${{ steps.docker_meta.outputs.labels }}
64+
username: ${{ github.actor }}
65+
password: ${{ secrets.GITHUB_TOKEN }}
66+
registry: docker.pkg.github.com
67+
repository: appvia/githubUserManager/githubUserManager
68+
tag_with_ref: true

0 commit comments

Comments
 (0)