Skip to content

Commit

Permalink
feat: add version build arg
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Aug 3, 2023
1 parent 47abc86 commit 9eb7764
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/actions/extract-fixtures/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ runs:
using: 'composite'
steps:
- id: github
uses: pl-strflt/docker-container-action/.github/actions/github@v1
uses: laurentsenta/docker-container-action/.github/actions/github@main
- name: Extract the fixtures
uses: pl-strflt/docker-container-action@v1
uses: laurentsenta/docker-container-action@main
env:
OUTPUT: ${{ inputs.output }}
MERGED: ${{ inputs.merged }}
Expand All @@ -25,3 +25,4 @@ runs:
ref: ${{ steps.github.outputs.action_ref }}
dockerfile: Dockerfile
args: extract-fixtures --directory="$OUTPUT" --merged="$MERGED"
build-args: VERSION=${{ github.head_ref || github.ref_name }}
5 changes: 3 additions & 2 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ runs:
using: "composite"
steps:
- id: github
uses: pl-strflt/docker-container-action/.github/actions/github@v1
uses: laurentsenta/docker-container-action/.github/actions/github@main
- name: Run the test
uses: pl-strflt/docker-container-action@v1
uses: laurentsenta/docker-container-action@main
env:
URL: ${{ inputs.gateway-url }}
SUBDOMAIN: ${{ inputs.subdomain-url }}
Expand All @@ -46,6 +46,7 @@ runs:
dockerfile: Dockerfile
opts: --network=host
args: test --url="$URL" --json="$JSON" --specs="$SPECS" --subdomain-url="$SUBDOMAIN" -- ${{ inputs.args }}
build-args: VERSION=${{ github.head_ref || github.ref_name }}
- name: Create the XML
if: (inputs.xml || inputs.html || inputs.markdown) && (failure() || success())
uses: pl-strflt/gotest-json-to-junit-xml@v1
Expand Down

0 comments on commit 9eb7764

Please sign in to comment.