Skip to content

Commit

Permalink
test latest
Browse files Browse the repository at this point in the history
  • Loading branch information
sk593 committed Sep 29, 2023
1 parent ae4a3cf commit ba0e5ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/radius-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ env:
GHCR_ACTOR: rad-ci-bot
# Container registry url for GitHub container registry.
CONTAINER_REGISTRY: ${{ github.event_name == 'push' && 'ghcr.io/radius-project/dev' || 'ghcr.io/radius-project/radius' }}
# URL to get source code for building the image
IMAGE_SRC: https://github.com/radius-project/radius

jobs:
build:
Expand Down Expand Up @@ -250,9 +252,9 @@ jobs:
--title "Radius Bicep v${{ env.REL_VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }}


# TODO once tested: if: ${{ github.event_name == 'push' }}
publish_ghcr:
if: ${{ github.event_name == 'push' }}
name: Publish to GHCR
needs: ["build", "vscode-bicep-build"]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -304,7 +306,7 @@ jobs:
- run: oras version
- name: Push rad bicep binaries to GHCR (${{ matrix.runtime.name }})
run: |
oras push ${{ env.CONTAINER_REGISTRY }}/bicep/rad-bicep/${{ matrix.runtime.name }}:latest ./artifacts/bicep/${{ matrix.runtime.name }}/
oras push --annotation "org.opencontainers.image.source=${{ env.IMAGE_SRC }}" ${{ env.CONTAINER_REGISTRY }}/bicep/rad-bicep/${{ matrix.runtime.name }}:latest ./artifacts/bicep/${{ matrix.runtime.name }}/
- name: Check uploaded
run: curl --fail ${{ env.CONTAINER_REGISTRY }}/bicep/rad-bicep/${{ matrix.runtime.name }}:latest -v > out

Expand Down

0 comments on commit ba0e5ef

Please sign in to comment.