You've already forked DataMate
fix: 归档包流水线 (#71)
This commit is contained in:
9
.github/workflows/docker-images-reusable.yml
vendored
9
.github/workflows/docker-images-reusable.yml
vendored
@@ -46,19 +46,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make build-${{ inputs.service_name }} VERSION=latest
|
make build-${{ inputs.service_name }} VERSION=latest
|
||||||
|
|
||||||
- name: Tag Docker Image
|
- name: Tag & Push Docker Image
|
||||||
run: |
|
|
||||||
docker tag datamate-${{ inputs.service_name }}:latest ${{ steps.set-tag.outputs.TAGS }}
|
|
||||||
|
|
||||||
- name: Push Docker Image
|
|
||||||
if: github.event_name != 'pull_request' && !startsWith(github.workflow, 'Package')
|
if: github.event_name != 'pull_request' && !startsWith(github.workflow, 'Package')
|
||||||
run: |
|
run: |
|
||||||
|
docker tag datamate-${{ inputs.service_name }}:latest ${{ steps.set-tag.outputs.TAGS }}
|
||||||
docker push ${{ steps.set-tag.outputs.TAGS }}
|
docker push ${{ steps.set-tag.outputs.TAGS }}
|
||||||
|
|
||||||
- name: Save Docker Image
|
- name: Save Docker Image
|
||||||
if: startsWith(github.workflow, 'Package')
|
if: startsWith(github.workflow, 'Package')
|
||||||
run: |
|
run: |
|
||||||
docker save -o datamate-${{ inputs.service_name }}.tar ${{ steps.set-tag.outputs.TAGS }}
|
docker save -o datamate-${{ inputs.service_name }}.tar datamate-${{ inputs.service_name }}:latest
|
||||||
|
|
||||||
- name: Upload Docker Image
|
- name: Upload Docker Image
|
||||||
if: startsWith(github.workflow, 'Package')
|
if: startsWith(github.workflow, 'Package')
|
||||||
|
|||||||
9
.github/workflows/package.yml
vendored
9
.github/workflows/package.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Save Image
|
- name: Download Image
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
path: images
|
path: images
|
||||||
@@ -54,5 +54,8 @@ jobs:
|
|||||||
- name: Upload Package
|
- name: Upload Package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: package
|
name: datamate
|
||||||
path: datamate.tar
|
include-hidden-files: true
|
||||||
|
path: |
|
||||||
|
deployment/
|
||||||
|
images/
|
||||||
Reference in New Issue
Block a user