Skip to content

Commit

Permalink
use cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Oct 8, 2024
1 parent 9a4f9c7 commit e3e1ac4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/actions/build-publish-ocr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ inputs:
token:
description: Github Token
required: true

username:
description: Github Token
required: true
runs:
using: composite
steps:
Expand All @@ -16,6 +18,9 @@ runs:
- name: Lowercase the repo name
shell: bash
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Login to ACR
shell: bash
run: docker login ${{ env.REGISTRY }} -u ${{ input.username }} -p ${{ inputs.token }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push backend
uses: ./.github/actions/build-publish-ocr
with:
deploy_env: ${{ env.deploy_env }}
token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}

# build_frontend:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit e3e1ac4

Please sign in to comment.