Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add login to gh packages registry #267

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 26 additions & 15 deletions .github/workflows/check_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ on:
- main

jobs:
check-unit:
name: Run unit tests
uses: ./.github/workflows/subflow_run_unit_tests.yaml

check-e2e:
name: Run e2e tests
needs:
- check-unit
uses: ./.github/workflows/subflow_run_e2e_tests.yaml

check-compat:
name: Run compat tests
needs:
- check-e2e
uses: ./.github/workflows/subflow_run_compat_tests.yaml
# Temporary remove tests from run to configure ghcr upload
# check-unit:
# name: Run unit tests
# uses: ./.github/workflows/subflow_run_unit_tests.yaml
#
# check-e2e:
# name: Run e2e tests
# needs:
# - check-unit
# uses: ./.github/workflows/subflow_run_e2e_tests.yaml
#
# check-compat:
# name: Run compat tests
# needs:
# - check-e2e
# uses: ./.github/workflows/subflow_run_compat_tests.yaml

release-nightly:
name: Release nightly image
Expand All @@ -37,6 +38,16 @@ jobs:
run: |
echo '${{ secrets.DOCKER_HUB_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_HUB_LOGIN}} --password-stdin

# Uses the `docker/login-action` action to log in to the Container registry
# using the account and password that will publish the packages.
# Once published, the packages are scoped to the account defined here.
- name: Guthub Packages Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker
shell: bash
env:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ jobs:
run: |
echo '${{ secrets.DOCKER_HUB_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_HUB_LOGIN}} --password-stdin

# Uses the `docker/login-action` action to log in to the Container registry
# using the account and password that will publish the packages.
# Once published, the packages are scoped to the account defined here.
- name: Guthub Packages Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Parse tag
id: tag
run: |
Expand Down
Loading