Skip to content

Commit

Permalink
login
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Oct 10, 2024
1 parent 1434cae commit c0cd52b
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,43 @@ jobs:
fi
test8:
name: Test GitHub with Login
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Login to Docker Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Test Action
id: test
uses: ./
with:
base-image: nginx:1.25.2-alpine
image: ghcr.io/nginxinc/nginx-gateway-fabric/nginx:1.0.0
platforms: linux/arm64,linux/amd64
- name: Get Test Output
run: |
echo "Needs updating: ${{ steps.test.outputs.needs-updating }}"
echo "Images: ${{ steps.test.outputs.diff-images }}"
- name: Check value
run: |
if [[ "${{ steps.test.outputs.needs-updating }}" != "false" ]]; then
exit 1
fi
test9:
name: Test Update Not Needed on multiple (all) platforms
runs-on: ubuntu-22.04
steps:
Expand All @@ -217,7 +254,7 @@ jobs:
#####################################
# Test with platform variants

test9:
test10:
name: Test Update Needed (Docker login) on multiple platforms with variants
strategy:
matrix:
Expand Down Expand Up @@ -248,7 +285,7 @@ jobs:
exit 1
fi
test10:
test11:
name: Test Update Not Needed on multiple platforms with variants
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit c0cd52b

Please sign in to comment.