File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 5
5
release :
6
6
types : ["published"]
7
7
tags : ["[0-9]+.*"]
8
-
9
8
workflow_call :
10
9
inputs :
11
10
dockerhub_repo :
52
51
username : ${{ github.repository_owner }}
53
52
password : ${{ secrets.GITHUB_TOKEN }}
54
53
54
+ - name : Generate Docker metadata
55
+ id : docker_metatdata
56
+ uses : docker/metadata-action@v3
57
+ with :
58
+ images :
59
+ - ghcr.io/${{ github.repository }}/otelcol-custom
60
+ - puckpuck/otelcol-custom
61
+ tags :
62
+ - type=raw,value=${{ github.ref_name }}
63
+ - type=raw,value=latest
64
+
55
65
# Build and push Docker image with Buildx (don't push on PR)
56
66
# https://github.com/docker/build-push-action
57
67
- name : Build and push Docker image
61
71
context : .
62
72
platforms : linux/arm64,linux/amd64
63
73
push : true
64
- tags : |
65
- ${{ inputs.dockerhub_repo }}:${{ github.event.release.tag_name }}
66
- ${{ inputs.dockerhub_repo }}:latest
67
- ${{ inputs.ghcr_repo }}:${{ github.event.release.tag_name }}
68
- ${{ inputs.ghcr_repo }}:latest
74
+ tags : ${{ steps.docker_metatdata.outputs.tags }}
69
75
cache-from : type=gha
70
76
cache-to : type=gha
You can’t perform that action at this time.
0 commit comments