-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (29 loc) · 985 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build CMT Geth
on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- 'v*'
jobs:
build:
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 }}