fix build
This commit is contained in:
27
.github/workflows/publish.yml
vendored
27
.github/workflows/publish.yml
vendored
@@ -55,30 +55,37 @@ jobs:
|
|||||||
- name: Build the docker image
|
- name: Build the docker image
|
||||||
env:
|
env:
|
||||||
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
|
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
|
||||||
|
APP: ${{ matrix.app.name }}
|
||||||
|
DOCKER_FILE: ${{ matrix.app.dockerfile }}
|
||||||
|
CONTEXT: ${{ matrix.app.context }}
|
||||||
run: |
|
run: |
|
||||||
APP_VERSION="$(git name-rev --tags --name-only $(git rev-parse HEAD) | head -n 1 | sed 's/\^0//')"
|
APP_VERSION="$(git name-rev --tags --name-only $(git rev-parse HEAD) | head -n 1 | sed 's/\^0//')"
|
||||||
GIT_SHA="$(git rev-parse HEAD)"
|
GIT_SHA="$(git rev-parse HEAD)"
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
-f ${{ matrix.app.dockerfile }} \
|
-f "$DOCKER_FILE" \
|
||||||
--progress=plain \
|
--progress=plain \
|
||||||
-t "unsend/${{ matrix.app.name }}-$BUILD_PLATFORM:latest" \
|
-t "unsend/$APP-$BUILD_PLATFORM:latest" \
|
||||||
-t "unsend/${{ matrix.app.name }}-$BUILD_PLATFORM:$GIT_SHA" \
|
-t "unsend/$APP-$BUILD_PLATFORM:$GIT_SHA" \
|
||||||
-t "unsend/${{ matrix.app.name }}-$BUILD_PLATFORM:$APP_VERSION" \
|
-t "unsend/$APP-$BUILD_PLATFORM:$APP_VERSION" \
|
||||||
-t "ghcr.io/unsend-dev/${{ matrix.app.name }}-$BUILD_PLATFORM:latest" \
|
-t "ghcr.io/unsend-dev/$APP-$BUILD_PLATFORM:latest" \
|
||||||
-t "ghcr.io/unsend-dev/${{ matrix.app.name }}-$BUILD_PLATFORM:$GIT_SHA" \
|
-t "ghcr.io/unsend-dev/$APP-$BUILD_PLATFORM:$GIT_SHA" \
|
||||||
-t "ghcr.io/unsend-dev/${{ matrix.app.name }}-$BUILD_PLATFORM:$APP_VERSION" \
|
-t "ghcr.io/unsend-dev/$APP-$BUILD_PLATFORM:$APP_VERSION" \
|
||||||
${{ matrix.app.context }}
|
"$CONTEXT"
|
||||||
|
|
||||||
- name: Push the docker image to DockerHub
|
- name: Push the docker image to DockerHub
|
||||||
run: docker push --all-tags "unsend/${{ matrix.app.name }}-$BUILD_PLATFORM"
|
run: docker push --all-tags "unsend/$APP-$BUILD_PLATFORM"
|
||||||
env:
|
env:
|
||||||
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
|
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
|
||||||
|
APP: ${{ matrix.app.name }}
|
||||||
|
DOCKER_FILE: ${{ matrix.app.dockerfile }}
|
||||||
|
CONTEXT: ${{ matrix.app.context }}
|
||||||
|
|
||||||
- name: Push the docker image to GitHub Container Registry
|
- name: Push the docker image to GitHub Container Registry
|
||||||
run: docker push --all-tags "ghcr.io/unsend-dev/${{ matrix.app.name }}-$BUILD_PLATFORM"
|
run: docker push --all-tags "ghcr.io/unsend-dev/$APP-$BUILD_PLATFORM"
|
||||||
env:
|
env:
|
||||||
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
|
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
|
||||||
|
APP: ${{ matrix.app.name }}
|
||||||
|
|
||||||
create_and_publish_manifest:
|
create_and_publish_manifest:
|
||||||
name: Create and publish manifest
|
name: Create and publish manifest
|
||||||
|
Reference in New Issue
Block a user