up build docker
This commit is contained in:
50
.github/workflows/build.yml
vendored
50
.github/workflows/build.yml
vendored
@@ -98,7 +98,7 @@ jobs:
|
|||||||
|
|
||||||
# docker build and push of single-arch images
|
# docker build and push of single-arch images
|
||||||
docker:
|
docker:
|
||||||
name: Push Docker Image ${{ matrix.job.platform }}
|
name: Push Docker Image
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@@ -151,31 +151,31 @@ jobs:
|
|||||||
platforms: ${{ matrix.job.docker_platform }}
|
platforms: ${{ matrix.job.docker_platform }}
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
lejianwen/rustdesk-api:${{ env.LATEST_TAG }}-${{ matrix.job.platform }}
|
# lejianwen/rustdesk-api:${{ env.LATEST_TAG }}
|
||||||
lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }}
|
lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.docker_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
|
# - name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v2
|
# uses: docker/login-action@v2
|
||||||
with:
|
# with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
# password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
#
|
||||||
- name: Create and push manifest (:version)
|
# - name: Create and push manifest (:version)
|
||||||
uses: Noelware/docker-manifest-action@master
|
# uses: Noelware/docker-manifest-action@master
|
||||||
with:
|
# with:
|
||||||
base-image: lejianwen/rustdesk-api:${{ env.TAG }}
|
# base-image: lejianwen/rustdesk-api:${{ env.TAG }}
|
||||||
extra-images: lejianwen/rustdesk-api:${{ env.TAG }}-amd64,lejianwen/rustdesk-api:${{ env.TAG }}-arm64
|
# extra-images: lejianwen/rustdesk-api:${{ env.TAG }}-amd64,lejianwen/rustdesk-api:${{ env.TAG }}-arm64
|
||||||
push: true
|
# push: true
|
||||||
|
|
||||||
# - name: Create and push manifest (:latest)
|
# - name: Create and push manifest (:latest)
|
||||||
# uses: Noelware/docker-manifest-action@master
|
# uses: Noelware/docker-manifest-action@master
|
||||||
|
|||||||
Reference in New Issue
Block a user