Skip to content

Commit

Permalink
ci: remove workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang committed Apr 24, 2024
1 parent b247d33 commit cd6daf0
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
include:
# Dockerhub
- images: manhinhang/ib-gateway-docker
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry:
username: DOCKERHUB_USERNAME
password: DOCKERHUB_PASSWORD
registry: ''
# Github
- images: ghcr.io/manhinhang/ib-gateway-docker
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
password: GITHUB_TOKEN
registry: 'ghcr.io'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand All @@ -39,8 +39,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry }}
username: ${{ matrix.username }}
password: ${{ matrix.password }}
username: ${{ startsWith(matrix.registry,'ghc') && matrix["username"] || secrets[matrix.username] }}
password: ${{ secrets[matrix.password] }}
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit cd6daf0

Please sign in to comment.