Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
style(tests): env var for test image name
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Oct 14, 2023
1 parent fe905c7 commit 69d4b8a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test-action-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69d4b8a

Please sign in to comment.