-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (87 loc) · 2.43 KB
/
skyetel.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Skyetel
on:
push:
branches: "**"
tags: "somleng-skyetel"
defaults:
run:
working-directory: skyetel
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_FROZEN: false
with:
working-directory: skyetel
bundler-cache: true
- name: Run the tests
run: bundle exec rake
release:
name: Release
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: googleapis/release-please-action@v4
id: release-please
with:
token: ${{ secrets.SOMLENG_PERSONAL_ACCESS_TOKEN }}
build-packages:
name: Build Packages
runs-on: ubuntu-latest
needs:
- build
if: ${{ startsWith(github.ref, 'refs/tags/somleng-skyetel') }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Debug
run: |
echo "Ref: ${{ github.ref }}"
echo "Ref name: ${{ github.ref_name }}"
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/somleng/somleng-skyetel
tags: |
type=match,pattern=somleng-skyetel-(v.*),group=1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
context: skyetel
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
create-sentry-release:
name: Create Sentry Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/somleng-skyetel-v') }}
steps:
- uses: actions/checkout@v4
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: somleng
SENTRY_PROJECT: somleng-skyetel
with:
environment: production
version: ${{ github.ref_name }}