mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Use env var for image base name
This commit is contained in:
parent
dc6213ddc8
commit
8f8f455bea
5
.github/workflows/cross-compiling-docker.yml
vendored
5
.github/workflows/cross-compiling-docker.yml
vendored
|
|
@ -10,6 +10,7 @@ jobs:
|
||||||
target: [amd64, arm64, arm]
|
target: [amd64, arm64, arm]
|
||||||
env:
|
env:
|
||||||
GOARCH: ${{ matrix.target }}
|
GOARCH: ${{ matrix.target }}
|
||||||
|
IMAGE_NAME: "dendrite-builder"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -20,9 +21,9 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./.github/workflows/Dockerfile.builder
|
file: ./.github/workflows/Dockerfile.builder
|
||||||
load: true # load into local image store
|
load: true # load into local image store
|
||||||
tags: "dendrite-builder:${{ matrix.target }}"
|
tags: "${{ env.IMAGE_NAME }}:${{ matrix.target }}"
|
||||||
- name: copy built files out of docker
|
- name: copy built files out of docker
|
||||||
run: docker run -v "$(pwd)/bin:/build/bin-out" builder:${{ matrix.target }} "/bin/sh" "-c" "cp -a /build/bin/* /build/bin-out"
|
run: docker run -v "$(pwd)/bin:/build/bin-out" "${{ env.IMAGE_NAME }}:${{ matrix.target }}" "/bin/sh" "-c" "cp -a /build/bin/* /build/bin-out"
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: bin-${{ matrix.target }}
|
name: bin-${{ matrix.target }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue