mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-21 15:03:05 +02:00
Merge pull request #702 from PassiveLemon/main
Release type Docker workflows
This commit is contained in:
commit
74a816216e
17
.github/workflows/docker.yml
vendored
17
.github/workflows/docker.yml
vendored
@ -2,7 +2,7 @@ name: Build and push Docker image
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [ published ]
|
||||
types: [ released, prereleased ]
|
||||
|
||||
jobs:
|
||||
setup-build-push:
|
||||
@ -33,7 +33,8 @@ jobs:
|
||||
run: |
|
||||
cp -lr $GITHUB_WORKSPACE/src/ $GITHUB_WORKSPACE/docker/src/
|
||||
|
||||
- name: Build and push Docker image
|
||||
- name: Build and push Docker image (Release)
|
||||
if: "!github.event.release.prerelease"
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker
|
||||
@ -45,3 +46,15 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Build and push Docker image (Prerelease)
|
||||
if: "github.event.release.prerelease"
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./docker
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
zoraxydocker/zoraxy:${{ github.event.release.tag_name }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user