File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,17 @@ action https://github.com/users/OWNER/packages/container/REPOSITORY/settings
1818- name : Buil and Push
1919 uses : pagopa/github-actions-template/ghcr-build-push@v1
2020 with :
21- branch : ' main'
2221 tag : ' 1.0.0'
2322 github_token : ${{ secrets.GITHUB_TOKEN }}
2423
2524` ` `
2625
2726## Input
2827
29- | Param | Description | Required | Values | Default |
30- |--------------|-----------------------|----------|----------|---------|
31- | branch | Branch where chekcout | **true** | ` string` | |
32- | tag | A tag for the image | **true** | `string` | |
33- | github_token | A GitHub token | **true** | `string` | |
28+ | Param | Description | Required | Values | Default |
29+ |--------------|-------------------------------------------------|----------|----------|---------|
30+ | tag | The github tag of application to build and push | **true** | ` string` | |
31+ | github_token | A GitHub token | **true** | `string` | |
3432
3533# # Output
3634
Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ name: Build and Push
22description : " Build and push a docker image on GitHub Container Registry"
33
44inputs :
5- branch :
6- required : true
7- type : string
8- description : Branch to build
95 tag :
106 required : true
117 type : string
2117 steps :
2218 - uses : actions/checkout@v3
2319 with :
24- ref : ${{ inputs.branch }}
20+ ref : ${{ inputs.tag }}
2521
2622 - name : Login to GitHub Container Registry
2723 uses : docker/login-action@v2
You can’t perform that action at this time.
0 commit comments