Skip to content

Commit

Permalink
Merge pull request #34
Browse files Browse the repository at this point in the history
merge actions-node16 with master
  • Loading branch information
sssomeshhh authored Nov 7, 2022
2 parents 78f601d + 040b276 commit 1763aa7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ksssomesh12
password: ${{ secrets.GH_PACKAGES_TOKEN }}

- name: Setup Docker Buildx
id: setup_buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.2.1

- name: Cache Docker Layers
id: cache_docker_layers
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-tgmb-base-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-tgmb-base-

- name: Build-Push Docker Image
id: docker_build_push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.2.0
with:
builder: ${{ steps.setup_buildx.outputs.name }}
target: base
Expand All @@ -48,27 +48,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ksssomesh12
password: ${{ secrets.GH_PACKAGES_TOKEN }}

- name: Setup Docker Buildx
id: setup_buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.2.1

- name: Cache Docker Layers
id: cache_docker_layers
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-tgmb-api-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-tgmb-api-

- name: Build-Push Docker Image
id: docker_build_push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.2.0
with:
builder: ${{ steps.setup_buildx.outputs.name }}
target: api
Expand All @@ -89,27 +89,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ksssomesh12
password: ${{ secrets.GH_PACKAGES_TOKEN }}

- name: Setup Docker Buildx
id: setup_buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.2.1

- name: Cache Docker Layers
id: cache_docker_layers
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-tgmb-mega-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-tgmb-mega-

- name: Build-Push Docker Image
id: docker_build_push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.2.0
with:
builder: ${{ steps.setup_buildx.outputs.name }}
target: mega
Expand All @@ -131,32 +131,27 @@ jobs:
needs: [build-base, build-api, build-mega]
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ksssomesh12
password: ${{ secrets.GH_PACKAGES_TOKEN }}

- name: Setup Docker Buildx
id: setup_buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.2.1

- name: Cache Docker Layers
id: cache_docker_layers
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-tgmb-app-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-tgmb-app-

- name: Get Branch/Tag Ref
id: get_ref
shell: bash
run: echo "##[set-output name=ref;]$(echo ${GITHUB_REF##*/})"

- name: Build-Push Docker Image
id: docker_build_push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.2.0
with:
builder: ${{ steps.setup_buildx.name }}
target: app
Expand All @@ -165,7 +160,7 @@ jobs:
push: true
tags: |
ghcr.io/ksssomesh12/tgmb-beta:${{ github.sha }}
ghcr.io/ksssomesh12/tgmb-beta:${{ steps.get_ref.outputs.ref }}
ghcr.io/ksssomesh12/tgmb-beta:${{ github.ref_name }}
- name: Docker Image Digest
run: echo ${{ steps.docker_build_push.outputs.digest }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
steps:
- name: Setup Python 3.9
id: setup_python
uses: actions/setup-python@v1
uses: actions/setup-python@v4.3.0
with:
python-version: 3.9

- name: Checkout Repo
id: checkout_repo
uses: actions/checkout@v2
uses: actions/checkout@v2.5.0
with:
submodules: recursive

Expand All @@ -32,7 +32,7 @@ jobs:
- name: Publish to PyPI
id: publish_pypi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 1763aa7

Please sign in to comment.