Skip to content

Commit

Permalink
ci: add docker login action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiller-rise8 committed Dec 16, 2023
1 parent 7fe5a9c commit dceb132
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/release-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/#-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.3.0
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/#-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-sandbox-manager-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/#-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.3.0
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
- name: Checkout repository:w
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/#-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.3.0
Expand All @@ -32,7 +39,7 @@ jobs:
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3.0.0

- name: Build and push Docker image
uses: docker/build-push-action@v5.1.0
Expand Down

0 comments on commit dceb132

Please # to comment.