Skip to content

Commit

Permalink
ci: fix tags for docker image '-withdeps'
Browse files Browse the repository at this point in the history
  • Loading branch information
vdebergue committed Sep 22, 2023
1 parent 1b04619 commit 1d6ff42
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
with:
script: |
core.setOutput('tags', `${{ steps.tags.outputs.tags }}`.split(",").join("\n"))
core.setOutput('tags-withdeps', `${{ steps.tags.outputs.tags }}`.split(",").map(t => t + "-withdeps").join("\n"))
- name: Generate full docker tags
id: meta
Expand All @@ -61,6 +62,16 @@ jobs:
tags: |
${{ steps.additional-tags.outputs.tags }}
- name: Generate full docker tags-withdeps
id: meta-withdeps
uses: docker/metadata-action@v4
with:
images: |
name=${{ secrets.HARBOR_REGISTRY }}/thehiveproject/cortex
name=thehiveproject/cortex
tags: |
${{ steps.additional-tags.outputs.tags-withdeps }}
- name: Login to Harbor
uses: docker/login-action@v2
with:
Expand All @@ -86,7 +97,7 @@ jobs:
with:
context: target/docker-withdeps/target/docker/stage
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta-withdeps.outputs.tags }}

- name: Make github release
uses: "softprops/action-gh-release@v1"
Expand Down

0 comments on commit 1d6ff42

Please sign in to comment.