Skip to content

Commit

Permalink
feat: 构建脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkhello committed Sep 8, 2023
1 parent 171dea7 commit 2b05cda
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'nano_mock 构建镜像'

on:
workflow_dispatch:

env:
REGISTRY: registry.cn-hangzhou.aliyuncs.com
HADES_IMAGE_TAG: V1.0.
KUAFU_IMAGE_TAG: V1.0.

jobs:
hades:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.ALI_HUB_USERNAME }}
password: ${{ secrets.ALI_HUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./devops/nano.mock.dockerfile
push: true
tags: ${{ env.REGISTRY }}/bayer-di-pub/nano_mock:latest
platforms: linux/amd64,linux/arm64
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ log

!logs/*.py

*-amr-002.yaml
nano-*.yaml

robo_msgs

0 comments on commit 2b05cda

Please sign in to comment.