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