Skip to content

Commit

Permalink
chore: linear-jira workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CI Automation committed Sep 2, 2024
1 parent 9494d21 commit 3f8e13c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linear-jira.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and push linear-jira image
on:
push:
paths: &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}

0 comments on commit 3f8e13c

Please sign in to comment.