From 69d4b8a8add59255f6f320244d92bff22197fa1e Mon Sep 17 00:00:00 2001 From: fernandoataoldotcom Date: Sat, 14 Oct 2023 20:56:15 +0000 Subject: [PATCH] style(tests): env var for test image name --- .github/workflows/test-action-on-pr.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-action-on-pr.yml b/.github/workflows/test-action-on-pr.yml index a96176d..d93920d 100644 --- a/.github/workflows/test-action-on-pr.yml +++ b/.github/workflows/test-action-on-pr.yml @@ -7,26 +7,26 @@ 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: Checkout code uses: actions/checkout@v3 - - name: Test GHCR + - name: Test ghcr.io uses: ./ with: - image_name: "glueops/github-actions-build-push-containers/test-github-actions-build-push-containers" + image_name: $TEST_IMAGE_NAME registry: "ghcr.io" context: "./test-directory/tests/" target_directory: test-directory - - name: Verify GHCR + - name: Verify ghcr.io run: | - docker pull ghcr.io/glueops/github-actions-build-push-containers/test-github-actions-build-push-containers:${{ github.sha }} - docker run ghcr.io/glueops/github-actions-build-push-containers/test-github-actions-build-push-containers:${{ github.sha }} + docker pull ghcr.io/$TEST_IMAGE_NAME:${{ github.sha }} + docker run ghcr.io/$TEST_IMAGE_NAME:${{ github.sha }} - # docker pull ghcr.io/${{ github.repository }}/test-github-actions-build-push-containers:latest - # docker run ghcr.io/${{ github.repository }}/test-github-actions-build-push-containers:latest # # Test ECR # - name: Use my action for ECR