Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Peter committed Jul 6, 2024
1 parent 9d3de7f commit 4125a3c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/actions/build/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build_and_test_main_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4125a3c

Please sign in to comment.