Skip to content

Commit

Permalink
updates to carpenter for release build (#14)
Browse files Browse the repository at this point in the history
I'm unceremoniously merging this to get my release process tested. Sue me.
  • Loading branch information
dustinblack authored Dec 13, 2022
1 parent 572c899 commit 5c98bc5
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/carpenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ on:
push:
branches:
- "**"
release:
types:
- published
env:
IMAGE_NAME: arcaflow-plugin-sysbench
IMAGE_NAME: ${{ github.event.repository.name }}
IMAGE_TAG: 'latest'
QUAY_IMG_EXP: 'never'
GITHUB_USERNAME: ${{ github.actor }}
Expand All @@ -14,6 +17,20 @@ env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
jobs:
carpenter-build-release:
name: carpenter_build_release
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- name: set_image_tag
run: |
echo "IMAGE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout this project
uses: actions/checkout@v3
- name: carpenter build
uses: arcalot/arcaflow-plugin-image-builder@main
with:
args: build --build --push
carpenter-build-prod:
name: carpenter_build_prod
runs-on: ubuntu-latest
Expand All @@ -28,7 +45,7 @@ jobs:
carpenter-build-dev:
name: carpenter_build_dev
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.event_name != 'release'
steps:
- name: set_image_tag
run: |
Expand Down

0 comments on commit 5c98bc5

Please sign in to comment.