Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Test release #15

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/skyetel-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Skyetel Release

on:
release:
types: [published]

defaults:
run:
working-directory: skyetel

jobs:
build-packages:
name: Build Packages
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/somleng-skyetel') }}
steps:
- name: Checkout
uses: actions/checkout@v4

- 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 }}
66 changes: 1 addition & 65 deletions .github/workflows/skyetel.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Skyetel

on:
push:
branches: "**"
tags: "somleng-skyetel"
on: push

defaults:
run:
Expand All @@ -27,11 +24,6 @@ jobs:
- name: Run the tests
run: bundle exec rake

- name: Debug
run: |
echo "Ref: ${{ github.ref }}"
echo "Ref name: ${{ github.ref_name }}"

release:
name: Release
runs-on: ubuntu-latest
Expand All @@ -43,61 +35,5 @@ jobs:
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: 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 }}
4 changes: 2 additions & 2 deletions skyetel/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Skyetel
# gSkyetel

[![Build](https://github.com/somleng/somleng-integrations/actions/workflows/skyetel.yml/badge.svg)](https://github.com/somleng/somleng-integrations/actions/workflows/skyetel.yml)

This integration connects [Skyetel](https://skyetel.com/) to Somleng.
This integration connects [Skyetel](https://skyetel.com/) to [Somleng](https://www.somleng.org/docs.html).

## Features

Expand Down