Skip to content

Commit

Permalink
ATOR-330 - Memory allocation (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Sep 20, 2024
1 parent 9c81a39 commit be8d968
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ghcr.io/anyone-protocol/ator-protocol-dev-${{ matrix.platform.image-suffix }}
docker-tag: latest-pr
docker-platform: ${{ matrix.platform.name }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dev-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- development
workflow_dispatch:

env:
image-name: ghcr.io/anyone-protocol/ator-protocol-dev
image-tag: ${{ github.sha }}
Expand All @@ -31,8 +31,8 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ${{ env.image-name }}-${{ matrix.platform.image-suffix }}
docker-tag: ${{ env.image-tag }}
docker-platform: ${{ matrix.platform.name }}
Expand All @@ -49,8 +49,8 @@ jobs:
- name: Multiarch push
uses: ./.github/actions/multiarch-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ${{ env.image-name }}
docker-tag: ${{ env.image-tag }}
event-name: ${{ github.event_name }}
Expand All @@ -61,7 +61,7 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Deploy new version
- name: Deploy new version
uses: ./.github/actions/deploy
with:
image-tag: ${{ env.image-tag }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/live-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ${{ env.image-name }}-${{ matrix.platform.image-suffix }}
docker-tag: ${{ env.image-tag }}
docker-platform: ${{ matrix.platform.name }}
Expand All @@ -53,8 +53,8 @@ jobs:
- name: Multiarch push
uses: ./.github/actions/multiarch-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ${{ env.image-name }}
docker-tag: ${{ env.image-tag }}
event-name: ${{ github.event_name }}
Expand All @@ -66,7 +66,7 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Deploy new version
- name: Deploy new version
uses: ./.github/actions/deploy
with:
image-tag: ${{ env.image-tag }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/stage-build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Stage Build Image and Deploy
name: Stage Build Image and Deploy

on:
push:
branches:
- main
- main
workflow_dispatch:

env:
image-name: ghcr.io/anyone-protocol/ator-protocol-stage
image-tag: ${{ github.sha }}
Expand Down Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ${{ env.image-name }}-${{ matrix.platform.image-suffix }}
docker-tag: ${{ env.image-tag }}
docker-platform: ${{ matrix.platform.name }}
Expand All @@ -53,8 +53,8 @@ jobs:
- name: Multiarch push
uses: ./.github/actions/multiarch-push
with:
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
docker-base-repo: ${{ env.image-name }}
docker-tag: ${{ env.image-tag }}
event-name: ${{ github.event_name }}
Expand All @@ -65,7 +65,7 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Deploy new version
- name: Deploy new version
uses: ./.github/actions/deploy
with:
image-tag: ${{ env.image-tag }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,6 @@ scripts/maint/geoip/geoip6
# /src/win32/
/src/win32/Makefile
/src/win32/Makefile.in

.idea
/ator-protocol.iml
2 changes: 1 addition & 1 deletion operations/anon-debian-repo.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ job "anon-debian-repo" {

resources {
cpu = 256
memory = 256
memory = 512
}

service {
Expand Down

0 comments on commit be8d968

Please sign in to comment.