Skip to content

Commit

Permalink
implement clearer tagging system
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed Nov 12, 2024
1 parent 4f22481 commit 89f7f61
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
File renamed without changes.
45 changes: 45 additions & 0 deletions .github/workflows/release-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# name: Deploy To Prodcution
# on:
# release:
# types: [released]

name: test-wf
on:
pull_request:
branches:
- main
env:
GHCR_REGISTRY: ghcr.io
GHCR_UI_IMAGE_NAME: ${{ github.repository }}/ui
QUAY_REGISTRY: quay.io
QUAY_UI_IMAGE_NAME: instructlab-ui/ui
GHCR_PATHSERVICE_IMAGE_NAME: ${{ github.repository }}/pathservice
QUAY_PATHSERVICE_IMAGE_NAME: instructlab-ui/pathservice

jobs:
check_most_recent_pr_number:
runs-on: ubuntu-latest
environment: registry-creds
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Get Pull Request Number
id: get_pr_number
uses: actions/github-script@v6
with:
script: |
const pr = await github.rest.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'closed',
head: `${context.repo.owner}:${process.env.GITHUB_HEAD_REF}`,
per_page: 1
});
if (pr.data.length > 0) {
return pr.data[0].number;
}
return '';
result-encoding: string

0 comments on commit 89f7f61

Please sign in to comment.