Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoulSKY committed Mar 12, 2024
1 parent a27b57b commit 91d84a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Build and Push Docker Image
inputs:
context:
required: true
token:
username:
required: true
password:
required: true

env:
Expand All @@ -22,8 +24,8 @@ runs:
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ inputs.token }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- "v*"

env:
USERNAME: ${{ github.repository_owner }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}

jobs:
sorusora:
runs-on: ubuntu-latest
Expand All @@ -16,7 +20,8 @@ jobs:
uses: ./.github/workflows/build-push
with:
context: sorusora
token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ env.USERNAME }}
password: ${{ env.PASSWORD }}

sorusora-ai:
runs-on: ubuntu-latest
Expand All @@ -28,4 +33,5 @@ jobs:
uses: ./.github/workflows/build-push
with:
context: sorusora-ai
token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ env.USERNAME }}
password: ${{ env.PASSWORD }}

0 comments on commit 91d84a6

Please sign in to comment.