Skip to content

Commit

Permalink
Drop defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Oct 10, 2023
1 parent 57d0c04 commit dd6ce32
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ concurrency:
jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
DBs:
defaults:
run:
shell: bash
working-directory: ./database
if: "!github.event.pull_request.head.repo.fork"
permissions:
packages: write
Expand All @@ -30,17 +26,17 @@ jobs:
- name: Get first tag
id: tag
run: |
TAG=$(grep '^FROM' ${{ matrix.package }}/${{ matrix.tag }}/Dockerfile | cut -d':' -f2)
TAG=$(grep '^FROM' database/${{ matrix.package }}/${{ matrix.tag }}/Dockerfile | cut -d':' -f2)
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Build or import
uses: bcgov-nr/[email protected]
with:
build_context: ${{ matrix.package }}/${{ matrix.tag }}
build_context: database/${{ matrix.package }}/${{ matrix.tag }}
package: ${{ matrix.package }}
tag: ${{ steps.tag.outputs.tag }}
token: ${{ github.token }}
triggers: ${{ matrix.package}}/${{ matrix.triggers }}
triggers: database/${{ matrix.package}}/${{ matrix.triggers }}

Wrap-up:
needs: [DBs]
Expand Down

0 comments on commit dd6ce32

Please sign in to comment.