Skip to content

Commit

Permalink
Tweaks to handling
Browse files Browse the repository at this point in the history
  • Loading branch information
krobertson committed Mar 31, 2024
1 parent 6b99363 commit 96f2b69
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ on:
default: true
type: boolean
description: Force rebuild
secrets:
BOT_APP_ID:
description: The App ID of the GitHub App
required: true
BOT_APP_PRIVATE_KEY:
description: The private key of the GitHub App
required: true

jobs:
prepare:
Expand All @@ -45,17 +38,8 @@ jobs:
shell: bash
run: echo "LOWERCASE_REPO_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV

- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"

- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Setup Python
uses: actions/setup-python@v5
Expand All @@ -70,7 +54,7 @@ jobs:
- name: Prepare Matrices
id: prepare-matrices
env:
TOKEN: ${{ steps.app-token.outputs.token }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
if [[ -z "${{ inputs.appsToBuild }}" ]]; then
Expand Down Expand Up @@ -140,17 +124,8 @@ jobs:
echo "${{ matrix.image.name }}" | grep -E "[a-zA-Z0-9_\.\-]+" || "Image Name is invalid"
echo "${{ matrix.image.version }}" | grep -E "[a-zA-Z0-9_\.\-]+" || "Image Version is invalid"
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"

- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 96f2b69

Please sign in to comment.