Skip to content

Commit

Permalink
fix(tests): use env vars correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Oct 14, 2023
1 parent 69d4b8a commit 77aec18
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test-action-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ on:
jobs:
test_action:
runs-on: ubuntu-latest
env:
TEST_IMAGE_NAME: "glueops/github-actions-build-push-containers/test-github-actions-build-push-containers"

steps:
- name: set image name
run: echo "TEST_IMAGE_NAME=glueops/github-actions-build-push-containers/test-github-actions-build-push-containers" >> $GITHUB_ENV

- name: Checkout code
uses: actions/checkout@v3

- name: Test ghcr.io
- name: test ghcr.io
uses: ./
with:
image_name: $TEST_IMAGE_NAME
image_name: ${{ env.TEST_IMAGE_NAME }}
registry: "ghcr.io"
context: "./test-directory/tests/"
target_directory: test-directory

- name: Verify ghcr.io
- name: verify ghcr.io
run: |
docker pull ghcr.io/$TEST_IMAGE_NAME:${{ github.sha }}
docker run ghcr.io/$TEST_IMAGE_NAME:${{ github.sha }}
Expand Down

0 comments on commit 77aec18

Please sign in to comment.