Skip to content

Commit

Permalink
[build-image.yml, upgrade-compose.yaml] Refactor build and push image… (
Browse files Browse the repository at this point in the history
#5)

… workflows
  • Loading branch information
YkeLit authored Jul 31, 2023
1 parent 257d790 commit 4f69d05
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ jobs:
- name: Build and push
uses: byzanteam/jet-actions/fe-build-image@main
with:
image_name: jet-autoflow-test
registries: |-
${{ secrets.ALIYUN_SKYLARK_REGISTRY }}
ghcr.io,byzanteam,${{ github.repository_owner }},${{ github.token }}
cache_type: local
20 changes: 20 additions & 0 deletions .github/workflows/upgrade-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Docker image for the app

on:
registry_package:
types: [published, updated]

jobs:
build-and-push-image:
runs-on: jet
steps:
- name: Upgraded by compose
uses: byzanteam/jet-actions/compose-upgrade@fix/yangke/file-blank
with:
host: 10.64.0.28
user: root
docker_compose_file_path: /data/fe-apps/docker-compose.yml
private_key: ${{ secrets.DEPLOYMENT_KEY }}
service_name: jet-autoflow-example
image: "registry.cn-hangzhou.aliyuncs.com/skylark/jet-autoflow-example:0.1.1"

0 comments on commit 4f69d05

Please sign in to comment.