-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge refactor-abdfd971 with master
- Loading branch information
Showing
5 changed files
with
159 additions
and
168 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: build-image | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
build-api: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: docker.io | ||
username: sssomeshhh | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- name: Setup Docker Buildx | ||
id: setup_buildx | ||
uses: docker/[email protected] | ||
- name: Build Load 'api' | ||
id: docker_load_api | ||
uses: docker/[email protected] | ||
with: | ||
builder: ${{ steps.setup_buildx.outputs.name }} | ||
target: api | ||
cache-from: | | ||
type=registry,ref=sssomeshhh/cache:tgmb-api-master | ||
type=registry,ref=sssomeshhh/cache:tgmb-api-${{ github.ref_name }} | ||
cache-to: | | ||
type=registry,ref=sssomeshhh/cache:tgmb-api-${{ github.ref_name }} | ||
load: false | ||
push: false | ||
|
||
build-sdk: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: docker.io | ||
username: sssomeshhh | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- name: Setup Docker Buildx | ||
id: setup_buildx | ||
uses: docker/[email protected] | ||
- name: Build Load 'sdk' | ||
id: docker_load_sdk | ||
uses: docker/[email protected] | ||
with: | ||
builder: ${{ steps.setup_buildx.outputs.name }} | ||
target: sdk | ||
cache-from: | | ||
type=registry,ref=sssomeshhh/cache:tgmb-sdk-master | ||
type=registry,ref=sssomeshhh/cache:tgmb-sdk-${{ github.ref_name }} | ||
cache-to: | | ||
type=registry,ref=sssomeshhh/cache:tgmb-sdk-${{ github.ref_name }} | ||
load: false | ||
push: false | ||
|
||
build-app: | ||
runs-on: ubuntu-22.04 | ||
needs: [build-api, build-sdk] | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ksssomesh12 | ||
password: ${{ secrets.GH_PACKAGES_TOKEN }} | ||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: docker.io | ||
username: sssomeshhh | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- name: Setup Docker Buildx | ||
id: setup_buildx | ||
uses: docker/[email protected] | ||
- name: Build Push 'app' | ||
id: docker_push_app | ||
uses: docker/[email protected] | ||
with: | ||
builder: ${{ steps.setup_buildx.name }} | ||
target: app | ||
cache-from: | | ||
type=registry,ref=sssomeshhh/cache:tgmb-api-${{ github.ref_name }} | ||
type=registry,ref=sssomeshhh/cache:tgmb-sdk-${{ github.ref_name }} | ||
type=registry,ref=sssomeshhh/cache:tgmb-app-master | ||
type=registry,ref=sssomeshhh/cache:tgmb-app-${{ github.ref_name }} | ||
cache-to: | | ||
type=registry,ref=sssomeshhh/cache:tgmb-app-${{ github.ref_name }} | ||
load: false | ||
push: true | ||
tags: | | ||
ghcr.io/ksssomesh12/tgmb-beta:${{ github.sha }} | ||
ghcr.io/ksssomesh12/tgmb-beta:${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,18 @@ on: | |
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Setup Python 3.9 | ||
id: setup_python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Checkout Repo | ||
id: checkout_repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build Dist | ||
id: build_dist | ||
env: | ||
|
@@ -30,7 +28,6 @@ jobs: | |
python3 -m pip install build --user | ||
python3 -m build | ||
ls -shl dist/ | ||
- name: Publish to PyPI | ||
id: publish_pypi | ||
uses: pypa/[email protected] | ||
|
Oops, something went wrong.