Skip to content

Commit a49c878

Browse files
authored
chore: add version tagging and fix CI branch (#39)
1 parent 51d0a75 commit a49c878

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build-availability-oracle.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- 'v*'
79

810
env:
911
BASE_IMAGE: ghcr.io/graphprotocol/availability-oracle
@@ -19,12 +21,15 @@ jobs:
1921

2022
- name: Docker meta
2123
id: docker_meta
22-
uses: docker/metadata-action@v3
24+
uses: docker/metadata-action@v5
2325
with:
2426
images: ${{ env.BASE_IMAGE }}
2527
tags: |
2628
type=sha
27-
type=raw,value=latest
29+
type=raw,value=latest,enable={{is_default_branch}}
30+
type=semver,pattern={{version}}
31+
type=semver,pattern={{major}}.{{minor}}
32+
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
2833
2934
- name: Login to GitHub Container Registry
3035
uses: docker/login-action@v1

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Continuous Integration
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
77
types: [opened, synchronize, reopened]
88

0 commit comments

Comments
 (0)