Skip to content

Commit

Permalink
ci: remove docker latest tag on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 21, 2024
1 parent 858ba19 commit 424ab2d
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,27 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: xhofe/alist

- name: Docker meta with ffmpeg
id: meta-ffmpeg
uses: docker/metadata-action@v5
with:
images: xhofe/alist
flavor: |
suffix=-ffmpeg,onlatest=true
- uses: actions/setup-go@v4
with:
go-version: 'stable'

- name: Build go binary
run: bash build.sh dev docker-multiplatform

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: xhofe/alist

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -54,15 +62,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x

- name: Docker meta with ffmpeg
id: meta-ffmpeg
uses: docker/metadata-action@v5
with:
images: xhofe/alist
flavor: |
latest=true
suffix=-ffmpeg,onlatest=true
- name: Build and push with ffmpeg
id: docker_build_ffmpeg
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 424ab2d

Please sign in to comment.