Skip to content

Commit

Permalink
chore: linear-jira workflow (#847)
Browse files Browse the repository at this point in the history
Co-authored-by: CI Automation <[email protected]>
  • Loading branch information
LittleChimera and sa-github-api authored Sep 2, 2024
1 parent e666fd5 commit 0182959
Show file tree
Hide file tree
Showing 4 changed files with 4,103 additions and 5,966 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/linear-jira.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and push linear-jira image
on:
push:
paths:
- linear-jira/**
- ./.github/workflows/linear-jira.yaml
branches:
- "main"
pull_request:
paths:
- linear-jira/**
- ./.github/workflows/linear-jira.yaml

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: "🚀 Building"
run: |
cd linear-jira; bazel build --config=ci ...
- name: "🔧 Login to GitHub Container Registry"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "📦 Push images to GitHub Container Registry"
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.head_ref, 'container') || startsWith(github.ref, 'refs/heads/container') || (github.ref == 'refs/heads/main') }}
run: cd linear-jira; bazel query --noshow_progress 'kind("oci_push", ...)' | xargs -I_target bazel run _target -- --tag ${GITHUB_SHA}
2 changes: 1 addition & 1 deletion linear-jira/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ oci_image(
oci_push(
name = "push_image",
image = ":linear-jira-image",
repository = "registry.gitlab.com/dfinity-lab/core/release/linear-jira",
repository = "ghcr.io/dfinity/dre/linear-jira",
)

js_test(
Expand Down
Loading

0 comments on commit 0182959

Please sign in to comment.