Skip to content

Commit 93c22f5

Browse files
authored
Update docker.yml
Signed-off-by: Zoey <[email protected]>
1 parent 284a1e0 commit 93c22f5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/docker.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build Docker Image
22
on:
33
push:
4-
branches:
5-
- latest
64
paths:
75
- Dockerfile
86
- .github/workflows/docker.yml
@@ -50,31 +48,31 @@ jobs:
5048
context: .
5149
file: ./Dockerfile
5250
platforms: linux/amd64,linux/arm64 #,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6
53-
push: ${{ github.ref == 'refs/heads/develop' }}
51+
push: ${{ github.ref == 'refs/heads/latest' }}
5452
tags: |
5553
${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }}
5654
ghcr.io/${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }}
5755
- name: show version
58-
if: ${{ github.ref == 'refs/heads/develop' }}
56+
if: ${{ github.ref == 'refs/heads/latest' }}
5957
run: |
6058
docker run --rm ${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }} -V
6159
docker run --rm ghcr.io/${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }} -V
6260
- name: copy curl binary
63-
if: ${{ github.ref == 'refs/heads/develop' }}
61+
if: ${{ github.ref == 'refs/heads/latest' }}
6462
run: |
6563
docker run -d --pull always --platform amd64 --name curl-x86_64 ${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }}
6664
docker cp curl-x86_64:/usr/local/bin/curl curl-x86_64
6765
docker run -d --pull always --platform arm64 --name curl-aarch64 ${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }}
6866
docker cp curl-aarch64:/usr/local/bin/curl curl-aarch64
6967
- uses: actions/upload-artifact@v3
70-
if: ${{ github.ref == 'refs/heads/develop' }}
68+
if: ${{ github.ref == 'refs/heads/latest' }}
7169
with:
7270
name: artifacts
7371
path: |
7472
curl-x86_64
7573
curl-aarch64
7674
- uses: "marvinpinto/action-automatic-releases@latest"
77-
if: ${{ github.ref == 'refs/heads/develop' }}
75+
if: ${{ github.ref == 'refs/heads/latest' }}
7876
with:
7977
prerelease: false
8078
repo_token: ${{ github.token }}

0 commit comments

Comments
 (0)