From 3de21a8a2bd149928eb0fbbe101cd1e95a61bb3a Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Thu, 19 Dec 2024 09:36:10 +0530 Subject: [PATCH] test yaml workflow --- .github/workflows/test_release.yaml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test_release.yaml diff --git a/.github/workflows/test_release.yaml b/.github/workflows/test_release.yaml new file mode 100644 index 00000000..4b97189e --- /dev/null +++ b/.github/workflows/test_release.yaml @@ -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!"