Skip to content

Commit

Permalink
updated registry in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spenceradolph committed Apr 14, 2024
1 parent e3b2f37 commit 332f742
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ jobs:
context: Payload_Type/sliverapi
file: Payload_Type/sliverapi/Dockerfile
tags: |
${{ env.REGISTRY }}/sliverapi:${{ env.VERSION }}
${{ env.REGISTRY }}/sliverapi:latest
${{ env.REGISTRY }}/sliver:sliverapi.${{ env.VERSION }}
push: ${{ github.ref_type == 'tag' }}
# These container metadata labels allow configuring the package in Github
# packages. The source will link the package to this Github repository
Expand All @@ -81,8 +80,7 @@ jobs:
context: Payload_Type/sliverimplant
file: Payload_Type/sliverimplant/Dockerfile
tags: |
${{ env.REGISTRY }}/sliverimplant:${{ env.VERSION }}
${{ env.REGISTRY }}/sliverimplant:latest
${{ env.REGISTRY }}/sliver:sliverimplant.${{ env.VERSION }}
push: ${{ github.ref_type == 'tag' }}
# These container metadata labels allow configuring the package in Github
# packages. The source will link the package to this Github repository
Expand Down Expand Up @@ -110,14 +108,14 @@ jobs:
with:
file: config.json
field: remote_images.sliverapi
value: ${{env.REGISTRY}}/sliverapi:${{env.VERSION}}
value: ${{env.REGISTRY}}/sliver:sliverapi.${{ env.VERSION }}

- name: Update config.json version for sliverimplant
uses: jossef/[email protected]
with:
file: config.json
field: remote_images.sliverimplant
value: ${{env.REGISTRY}}/sliverimplant:${{env.VERSION}}
value: ${{env.REGISTRY}}/sliver:sliverimplant.${{ env.VERSION }}

# Push the changes to the Dockerfile
- name: Push the updated base Dockerfile image reference changes
Expand Down Expand Up @@ -173,8 +171,7 @@ jobs:
context: Payload_Type/sliverapi
file: Payload_Type/sliverapi/Dockerfile
tags: |
${{ env.REGISTRY }}/sliverapi:${{ env.VERSION }}
${{ env.REGISTRY }}/sliverapi:latest
${{ env.REGISTRY }}/sliver:sliverapi.${{ env.VERSION }}
push: ${{ github.ref_type == 'tag' }}
# These container metadata labels allow configuring the package in Github
# packages. The source will link the package to this Github repository
Expand All @@ -190,8 +187,7 @@ jobs:
context: Payload_Type/sliverimplant
file: Payload_Type/sliverimplant/Dockerfile
tags: |
${{ env.REGISTRY }}/sliverimplant:${{ env.VERSION }}
${{ env.REGISTRY }}/sliverimplant:latest
${{ env.REGISTRY }}/sliver:sliverimplant.${{ env.VERSION }}
push: ${{ github.ref_type == 'tag' }}
# These container metadata labels allow configuring the package in Github
# packages. The source will link the package to this Github repository
Expand Down
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"exclude_documentation_c2": true,
"exclude_agent_icons": true,
"remote_images": {
"sliverapi": "ghcr.io/mythicagents/sliver:v0.0.0.5",
"sliverimplant": "ghcr.io/mythicagents/sliver:v0.0.0.5"
"sliverapi": "ghcr.io/mythicagents/sliver:sliverapi.v0.0.0.5",
"sliverimplant": "ghcr.io/mythicagents/sliver:sliverimplant.v0.0.0.5"
}
}

0 comments on commit 332f742

Please sign in to comment.