Skip to content

Commit

Permalink
Update docker registry and deploy process
Browse files Browse the repository at this point in the history
  • Loading branch information
floodcode committed Jul 31, 2024
1 parent 2ed478e commit 4d3fa9c
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 218 deletions.
1 change: 1 addition & 0 deletions .github/actions/build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ runs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ inputs.docker-username }}
password: ${{ inputs.docker-password }}

Expand Down
1 change: 1 addition & 0 deletions .github/actions/multiarch-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ runs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ inputs.docker-username }}
password: ${{ inputs.docker-password }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_DEV }}-${{ matrix.platform.image-suffix }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol-dev-${{ matrix.platform.image-suffix }}
docker-tag: latest-pr
docker-platform: ${{ matrix.platform.name }}
version: ${{ github.sha }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dev-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_DEV }}-${{ matrix.platform.image-suffix }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol-dev-${{ matrix.platform.image-suffix }}
docker-tag: ${{ env.image-tag }}
docker-platform: ${{ matrix.platform.name }}
version: ${{ github.sha }}
Expand All @@ -45,9 +45,9 @@ jobs:
- name: Multiarch push
uses: ./.github/actions/multiarch-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_DEV }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol-dev
docker-tag: ${{ env.image-tag }}
event-name: ${{ github.event_name }}
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_call:

env:
image-name: ${{ secrets.DOCKER_BASE_REPO_DEV }}
image-name: ghcr.io/ator-development/ator-protocol-dev
image-tag: ${{ github.event_name == 'workflow_call' && 'latest' || github.sha }}
da-1-hc-url: http://49.13.145.234:9030/tor/status-vote/current/consensus
da-2-hc-url: http://5.161.108.187:9030/tor/status-vote/current/consensus
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/live-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_LIVE }}-${{ matrix.platform.image-suffix }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol-${{ matrix.platform.image-suffix }}
docker-tag: ${{ env.image-tag }}
docker-platform: ${{ matrix.platform.name }}
version: ${{ github.sha }}
Expand All @@ -45,9 +45,9 @@ jobs:
- name: Multiarch push
uses: ./.github/actions/multiarch-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_LIVE }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol
docker-tag: ${{ env.image-tag }}
event-name: ${{ github.event_name }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/live-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_call:

env:
image-name: ${{ secrets.DOCKER_BASE_REPO_LIVE }}
image-name: ghcr.io/ator-development/ator-protocol
image-tag: ${{ github.event_name == 'workflow_call' && github.ref_name || 'latest' }}
da-1-hc-url: http://49.13.145.234:9230/tor/status-vote/current/consensus
da-2-hc-url: http://5.161.108.187:9230/tor/status-vote/current/consensus
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/stage-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Build and push
uses: ./.github/actions/build-and-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_STAGE }}-${{ matrix.platform.image-suffix }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol-stage-${{ matrix.platform.image-suffix }}
docker-tag: ${{ env.image-tag }}
docker-platform: ${{ matrix.platform.name }}
version: ${{ github.sha }}
Expand All @@ -45,9 +45,9 @@ jobs:
- name: Multiarch push
uses: ./.github/actions/multiarch-push
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-base-repo: ${{ secrets.DOCKER_BASE_REPO_STAGE }}
docker-username: ${{ secrets.CR_USERNAME }}
docker-password: ${{ secrets.CR_PAT }}
docker-base-repo: ghcr.io/ator-development/ator-protocol-stage
docker-tag: ${{ env.image-tag }}
event-name: ${{ github.event_name }}
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_call:

env:
image-name: ${{ secrets.DOCKER_BASE_REPO_STAGE }}
image-name: ghcr.io/ator-development/ator-protocol-stage
image-tag: ${{ github.event_name == 'workflow_call' && 'latest' || github.sha }}
da-1-hc-url: http://49.13.145.234:9130/tor/status-vote/current/consensus
da-2-hc-url: http://5.161.108.187:9130/tor/status-vote/current/consensus
Expand Down
4 changes: 3 additions & 1 deletion operations/anon-da-node-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ job "ator-dir-auth-dev" {
}

config {
image = "svforte/anon-dev:PLACEIMAGETAGHERE"
image = "ghcr.io/ator-development/ator-protocol-dev:PLACEIMAGETAGHERE"
ports = ["orport", "dirport"]
volumes = [
"local/anonrc:/etc/anon/anonrc",
Expand Down Expand Up @@ -129,6 +129,8 @@ job "ator-dir-auth-dev" {
User anond
DataDirectory /var/lib/anon
AgreeToTerms 1
AuthoritativeDirectory 1
V3AuthoritativeDirectory 1
Expand Down
4 changes: 3 additions & 1 deletion operations/anon-da-node-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ job "ator-dir-auth-live" {
}

config {
image = "svforte/anon:PLACEIMAGETAGHERE"
image = "ghcr.io/ator-development/ator-protocol-live:PLACEIMAGETAGHERE"
ports = ["orport", "dirport"]
volumes = [
"local/anonrc:/etc/anon/anonrc",
Expand Down Expand Up @@ -146,6 +146,8 @@ job "ator-dir-auth-live" {
User anond
DataDirectory /var/lib/anon
AgreeToTerms 1
AuthoritativeDirectory 1
V3AuthoritativeDirectory 1
Expand Down
4 changes: 3 additions & 1 deletion operations/anon-da-node-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ job "ator-dir-auth-stage" {
}

config {
image = "svforte/anon-stage:PLACEIMAGETAGHERE"
image = "ghcr.io/ator-development/ator-protocol-stage:PLACEIMAGETAGHERE"
ports = ["orport", "dirport"]
volumes = [
"local/anonrc:/etc/anon/anonrc",
Expand Down Expand Up @@ -134,6 +134,8 @@ job "ator-dir-auth-stage" {
User anond
DataDirectory /var/lib/anon
AgreeToTerms 1
AuthoritativeDirectory 1
V3AuthoritativeDirectory 1
Expand Down
2 changes: 1 addition & 1 deletion operations/anon-debian-repo.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ server {
driver = "docker"

config {
image = "svforte/package-exporter:v0.0.3"
image = "ghcr.io/ator-development/package-exporter:v0.0.4"
ports = ["exporter-http"]
volumes = [
"local/exporter.yml:/app/config.yml:ro",
Expand Down
190 changes: 0 additions & 190 deletions operations/ator-da-node-dev.hcl

This file was deleted.

0 comments on commit 4d3fa9c

Please sign in to comment.