mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Use linux-* for public binary asset names (#3032)
I think we want to keep the `linux-` out of the Docker image names, but it's help for the client binary to be named `linux-client`
This commit is contained in:
15
.github/workflows/cd.yml
vendored
15
.github/workflows/cd.yml
vendored
@@ -127,10 +127,13 @@ jobs:
|
||||
name:
|
||||
- package: firezone-linux-client
|
||||
artifact: linux-client
|
||||
image_name: client
|
||||
- package: firezone-relay
|
||||
artifact: relay
|
||||
image_name: relay
|
||||
- package: firezone-gateway
|
||||
artifact: gateway
|
||||
image_name: gateway
|
||||
env:
|
||||
BINARY_DEST_PATH: ${{ matrix.name.artifact }}-${{ matrix.arch.shortname }}
|
||||
steps:
|
||||
@@ -195,7 +198,7 @@ jobs:
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images:
|
||||
${{ steps.login.outputs.registry }}/firezone/${{matrix.name.artifact }}
|
||||
${{ steps.login.outputs.registry }}/firezone/${{matrix.name.image_name }}
|
||||
tags: |
|
||||
type=raw,value=${{ github.sha }}
|
||||
type=raw,value=${{ env.VERSION }}
|
||||
@@ -211,17 +214,17 @@ jobs:
|
||||
TARGET=${{ matrix.arch.target }}
|
||||
context: rust
|
||||
cache-from: |
|
||||
type=registry,ref=${{ steps.login.outputs.registry }}/cache/${{ matrix.name.artifact }}:main
|
||||
type=registry,ref=${{ steps.login.outputs.registry }}/cache/${{ matrix.name.image_name }}:main
|
||||
cache-to: |
|
||||
type=registry,ref=${{ steps.login.outputs.registry }}/cache/${{ matrix.name.artifact }}:main,mode=max
|
||||
type=registry,ref=${{ steps.login.outputs.registry }}/cache/${{ matrix.name.image_name }}:main,mode=max
|
||||
target: release
|
||||
outputs:
|
||||
type=image,name=${{ steps.login.outputs.registry }}/firezone/${{ matrix.name.artifact }},push-by-digest=true,name-canonical=true,push=true
|
||||
type=image,name=${{ steps.login.outputs.registry }}/firezone/${{ matrix.name.image_name }},push-by-digest=true,name-canonical=true,push=true
|
||||
- name: Export digest
|
||||
run: |
|
||||
mkdir -p /tmp/digests/${{ matrix.name.artifact }}
|
||||
mkdir -p /tmp/digests/${{ matrix.name.image_name }}
|
||||
digest="${{ steps.build.outputs.digest }}"
|
||||
touch "/tmp/digests/${{ matrix.name.artifact }}/${digest#sha256:}"
|
||||
touch "/tmp/digests/${{ matrix.name.image_name }}/${digest#sha256:}"
|
||||
- name: Upload digest
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user