forked from jmpsec/osctrl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bogdan Peter
committed
Jul 6, 2024
1 parent
9d3de7f
commit 4125a3c
Showing
2 changed files
with
20 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 |
---|---|---|
|
@@ -54,6 +54,16 @@ runs: | |
osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin \ | ||
osctrl-${{ inputs.osctrl_component }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin | ||
########################### Add meta data ########################### | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }} | ||
tags: | | ||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} | ||
type=semver,pattern={{version}} | ||
########################### Log into Dockerhub ########################### | ||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
|
@@ -77,7 +87,7 @@ runs: | |
context: . | ||
file: ./deploy/cicd/docker/Dockerfile-osctrl-${{ inputs.osctrl_component }} | ||
push: true | ||
tags: ${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }}:${{ inputs.docker_tag }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: "${{ inputs.go_os }}/${{ inputs.go_arch }}" | ||
outputs: type=image,name=osctrl-${{ inputs.osctrl_component }},push-by-digest=true,name-canonical=true,push=true | ||
build-args: | | ||
|
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 |
---|---|---|
|
@@ -169,6 +169,15 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ inputs.docker_hub_org }}/osctrl-${{ inputs.osctrl_component }} | ||
tags: | | ||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} | ||
type=semver,pattern={{version}} | ||
########################### Log into Dockerhub ########################### | ||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
|