Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pengpeng committed Sep 21, 2023
1 parent 65aefd7 commit 137d238
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build CMT Geth
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- 'v*'
jobs:
update_sdk:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get latest tag
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
id: get-latest-tag
with:
fallback: latest
- name: Build the Docker Image
run: |
docker build . --tag ghcr.io/CyberMiles/travis-x:${{ steps.get-latest-tag.outputs.tag }}
docker push ghcr.io/CyberMiles/travis-x:${{ steps.get-latest-tag.outputs.tag }}

0 comments on commit 137d238

Please sign in to comment.