Skip to content

Commit

Permalink
test yaml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Dec 19, 2024
1 parent 9659d46 commit 3de21a8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Release

# Run on every master merge and on all PRs.
on:
push:
branches: [main]
tags: [v*]

pull_request:

workflow_dispatch:

permissions:
contents: read

jobs:
release-test:
runs-on: ubuntu-latest # Specify the runner environment

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Test Docker login
run: |
echo "Testing Docker login..."
docker info | grep -q "ghcr.io" && echo "Login successful!" || echo "Login failed!"

0 comments on commit 3de21a8

Please sign in to comment.