Skip to content

Commit

Permalink
[skip ci] Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0sh1dk authored and github-actions[bot] committed Dec 17, 2023
1 parent 23255ba commit bbc5c10
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: gha-docker-image-exists Test
on:
workflow_dispatch:

env:
REGISTRY_PORT: 5000
REGISTRY_USERNAME: "test-registry-username"
REGISTRY_PASSWORD: "test-registry-password"

jobs:
success-no-auth:
runs-on: ubuntu-latest
steps:
- name: GHA Docker Image Exists
id: gha-docker-image-exists
continue-on-error: true
uses: Y0sh1dk/gha-docker-image-exists@main
uses: Y0sh1dk/gha-docker-image-exists@feature/registry-basic-auth
with:
image: nginx:latest
- name: Check output
Expand All @@ -30,7 +28,7 @@ jobs:
- name: GHA Docker Image Exists
id: gha-docker-image-exists
continue-on-error: true
uses: Y0sh1dk/gha-docker-image-exists@main
uses: Y0sh1dk/gha-docker-image-exists@feature/registry-basic-auth
with:
image: nginx:invalid-tag
- name: Check output
Expand All @@ -45,24 +43,20 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Task
uses: arduino/setup-task@v1

- name: Setup local registry
run: |
task local-registry-up
- name: GHA Docker Image Exists
id: gha-docker-image-exists
continue-on-error: true
uses: Y0sh1dk/gha-docker-image-exists@main
uses: Y0sh1dk/gha-docker-image-exists@feature/registry-basic-auth
with:
image: nginx:latest
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
serverAddress: localhost:${{ env.REGISTRY_PORT }}

- name: Check output
run: |
if [ ${{ steps.gha-docker-image-exists.outcome == 'success' }} ]; then
Expand All @@ -75,24 +69,20 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Task
uses: arduino/setup-task@v1

- name: Setup local registry
run: |
task local-registry-up
- name: GHA Docker Image Exists
id: gha-docker-image-exists
continue-on-error: true
uses: Y0sh1dk/gha-docker-image-exists@main
uses: Y0sh1dk/gha-docker-image-exists@feature/registry-basic-auth
with:
image: nginx:invalid-tag
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
serverAddress: localhost:${{ env.REGISTRY_PORT }}

- name: Check output
run: |
if [ ${{ steps.gha-docker-image-exists.outcome == 'failure' }} ]; then
Expand Down

0 comments on commit bbc5c10

Please sign in to comment.