mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-09-15 14:28:34 +08:00
test
This commit is contained in:
parent
718ecc2372
commit
8e026de20b
64
.github/workflows/build.yml
vendored
64
.github/workflows/build.yml
vendored
@ -144,47 +144,47 @@ jobs:
|
|||||||
tar -xzf ${{ matrix.job.goos }}-${{ matrix.job.platform }}.tar.gz -C ${{ matrix.job.platform }}
|
tar -xzf ${{ matrix.job.goos }}-${{ matrix.job.platform }}.tar.gz -C ${{ matrix.job.platform }}
|
||||||
file ${{ matrix.job.platform }}/apimain
|
file ${{ matrix.job.platform }}/apimain
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image ${{ matrix.job.platform }}
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: "."
|
context: "."
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: ${{ matrix.job.docker_platform }}
|
||||||
push: true
|
push: true
|
||||||
# provenance: false
|
provenance: false
|
||||||
build-args: |
|
build-args: |
|
||||||
BUILDARCH=${{ matrix.job.platform }}
|
BUILDARCH=${{ matrix.job.platform }}
|
||||||
tags: |
|
tags: |
|
||||||
lejianwen/rustdesk-api:${{ env.LATEST_TAG }}
|
lejianwen/rustdesk-api:${{ env.LATEST_TAG }}-${{ matrix.job.platform }}
|
||||||
lejianwen/rustdesk-api:${{ env.TAG }}
|
lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
#
|
#
|
||||||
# docker-manifest:
|
docker-manifest:
|
||||||
# name: Push Docker Manifest
|
name: Push Docker Manifest
|
||||||
# needs: docker
|
needs: docker
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: Extract version from tag
|
- name: Extract version from tag
|
||||||
# id: vars
|
id: vars
|
||||||
# run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
#
|
|
||||||
# - name: Log in to Docker Hub
|
|
||||||
# uses: docker/login-action@v2
|
|
||||||
# with:
|
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
# password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
||||||
#
|
|
||||||
# - name: Create and push manifest (:version)
|
|
||||||
# uses: Noelware/docker-manifest-action@master
|
|
||||||
# with:
|
|
||||||
# base-image: lejianwen/rustdesk-api:${{ env.TAG }}
|
|
||||||
# extra-images: lejianwen/rustdesk-api:${{ env.TAG }}-amd64,lejianwen/rustdesk-api:${{ env.TAG }}-arm64
|
|
||||||
# push: true
|
|
||||||
|
|
||||||
# - name: Create and push manifest (:latest)
|
- name: Log in to Docker Hub
|
||||||
# uses: Noelware/docker-manifest-action@master
|
uses: docker/login-action@v2
|
||||||
# with:
|
with:
|
||||||
# base-image: lejianwen/rustdesk-api:latest
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# extra-images: lejianwen/rustdesk-api:latest-amd64,lejianwen/rustdesk-api:latest-arm64
|
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
# push: true
|
|
||||||
|
- name: Create and push manifest (:version)
|
||||||
|
uses: Noelware/docker-manifest-action@master
|
||||||
|
with:
|
||||||
|
base-image: lejianwen/rustdesk-api:${{ env.TAG }}
|
||||||
|
extra-images: lejianwen/rustdesk-api:${{ env.TAG }}-amd64,lejianwen/rustdesk-api:${{ env.TAG }}-arm64
|
||||||
|
push: true
|
||||||
|
|
||||||
|
- name: Create and push manifest (:latest)
|
||||||
|
uses: Noelware/docker-manifest-action@master
|
||||||
|
with:
|
||||||
|
base-image: lejianwen/rustdesk-api:latest
|
||||||
|
extra-images: lejianwen/rustdesk-api:latest-amd64,lejianwen/rustdesk-api:latest-arm64
|
||||||
|
push: true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user