ci: 添加 docker image url 计算 step
This commit is contained in:
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@@ -12,6 +12,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get Docker Image Url
|
||||||
|
id: image
|
||||||
|
env:
|
||||||
|
URL: mmx233/bitsrunlogin-go
|
||||||
|
run: |
|
||||||
|
echo LATEST=${URL}:latest >> $GITHUB_OUTPUT
|
||||||
|
echo VERSION=${URL}:${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Setup QEMU Emulator
|
- name: Setup QEMU Emulator
|
||||||
uses: docker/setup-qemu-action@master
|
uses: docker/setup-qemu-action@master
|
||||||
with:
|
with:
|
||||||
@@ -36,4 +44,4 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
|
||||||
tags: mmx233/bitsrunlogin-go:latest,mmx233/bitsrunlogin-go:${{GITHUB_REF/refs\/tags\//}}
|
tags: ${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.LATEST }}
|
||||||
Reference in New Issue
Block a user