Skip to content

Commit

Permalink
ci: add docker hub login
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Oct 26, 2024
1 parent 1323634 commit ea83e34
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ on:
value: ${{ jobs.docker-build-images.outputs.built-images }}

jobs:
init:
name: "prepare environment for jobs"
runs-on: self-hosted
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

shellcheck:
name: "Shell: Lint Shell Scripts"
runs-on: self-hosted
needs:
- init
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,6 +37,8 @@ jobs:
hadolint:
name: "Docker: Lint Dockerfile"
runs-on: self-hosted
needs:
- init
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -36,6 +49,7 @@ jobs:
docker-build-images:
name: "Docker: Build Images"
needs:
- init
- shellcheck
- hadolint
uses: hoverkraft-tech/ci-github-container/.github/workflows/[email protected]
Expand Down Expand Up @@ -68,6 +82,7 @@ jobs:
name: "Helm: Chart Testing"
runs-on: self-hosted
needs:
- init
- docker-build-images
steps:
- name: Checkout
Expand Down

0 comments on commit ea83e34

Please sign in to comment.