Skip to content

Commit

Permalink
feat: remove provider code (akash-network#1646)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Aug 26, 2022
1 parent 321a3d3 commit 8a29be1
Show file tree
Hide file tree
Showing 770 changed files with 313 additions and 108,901 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/k8s-integration.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
- master
- mainnet/main
pull_request:
# paths:
# - '.github.com/workflows/macos.yaml'

env:
MAINNET: ${{ github.ref == 'refs/heads/mainnet/main'}}
Expand All @@ -25,7 +23,7 @@ jobs:
- run: |
while IFS='' read -r LINE || [ -n "${LINE}" ]; do
echo "$LINE" >> $GITHUB_ENV;
done < .makerc
done < .env
- run: |
brew install bash
sudo chsh -s /usr/local/bin/bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -32,7 +32,7 @@ jobs:
run: git checkout $GITHUB_SHA
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: branch name
id: branch_name
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- run: make shellcheck
8 changes: 4 additions & 4 deletions .github/workflows/sims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -42,7 +42,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -56,7 +56,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -70,7 +70,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -33,7 +33,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -46,7 +46,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand All @@ -60,7 +60,7 @@ jobs:
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .makerc
env-file: .env
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GOLANG_VERSION }}"
Expand Down
56 changes: 49 additions & 7 deletions .goreleaser-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,32 @@ builds:
- id: akash-linux-amd64
binary: akash
main: ./cmd/akash
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
goarch:
- amd64
goos:
- linux
flags:
- "-mod={{ .Env.MOD }}"
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread --static"
- id: akash-linux-arm64
binary: akash
main: ./cmd/akash
goarch:
- arm64
goos:
- linux
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- "-mod={{ .Env.MOD }}"
- "-tags={{ .Env.BUILD_TAGS }}"
Expand All @@ -22,13 +41,36 @@ builds:
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread --static"
dockers:
- ids:
- akash-linux-amd64
dockerfile: _build/Dockerfile.akash
goos: linux
- dockerfile: _build/Dockerfile.akash
use: buildx
goarch: amd64
goos: linux
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.source={{.GitURL}}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- 'ghcr.io/ovrclk/{{ .ProjectName }}:latest-amd64'
- dockerfile: _build/Dockerfile.akash
use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.source={{.GitURL}}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- 'ghcr.io/ovrclk/akash:latest'
- 'ghcr.io/ovrclk/{{ .ProjectName }}:latest-arm64'

archives:
- format: binary
63 changes: 45 additions & 18 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,53 @@ archives:
- none*

dockers:
- ids:
- akash-linux-amd64
dockerfile: _build/Dockerfile.akash
goos: linux
- dockerfile: _build/Dockerfile.akash
use: buildx
goarch: amd64
goos: linux
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.source={{.GitURL}}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- 'ghcr.io/ovrclk/{{ .ProjectName }}:{{ .ShortCommit }}-amd64'
- 'ghcr.io/ovrclk/{{ .ProjectName }}:{{ .Version }}-amd64'
- 'ghcr.io/ovrclk/{{ .ProjectName }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-amd64'
- dockerfile: _build/Dockerfile.akash
use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.source={{.GitURL}}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- 'ghcr.io/ovrclk/{{ .ProjectName }}:{{ .ShortCommit }}-arm64'
- 'ghcr.io/ovrclk/{{ .ProjectName }}:{{ .Version }}-arm64'
- 'ghcr.io/ovrclk/{{ .ProjectName }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-arm64'
docker_manifests:
- name_template: ghcr.io/ovrclk/{{ .ProjectName }}:{{ .ShortCommit }}
image_templates:
- ghcr.io/ovrclk/{{ .ProjectName }}:{{ .ShortCommit }}-amd64
- ghcr.io/ovrclk/{{ .ProjectName }}:{{ .ShortCommit }}-arm64
- name_template: ghcr.io/ovrclk/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/ovrclk/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/ovrclk/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: ghcr.io/ovrclk/{{ .ProjectName }}:latest
image_templates:
- 'ghcr.io/ovrclk/akash:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}'
- 'ghcr.io/ovrclk/akash:{{ .ShortCommit }}'
- 'ghcr.io/ovrclk/akash:{{ .Version }}'
brews:
- name: "{{ .Env.HOMEBREW_NAME }}"
tap:
owner: ovrclk
name: homebrew-tap
homepage: "https://akash.network"
description: "Blockchain-powered decentralized compute platform"
custom_block: |
{{ .Env.HOMEBREW_CUSTOM }}
install: |
bin.install "akash"
- ghcr.io/ovrclk/{{ .ProjectName }}:latest-amd64
- ghcr.io/ovrclk/{{ .ProjectName }}:latest-arm64

nfpms:
- vendor: "Overclock Labs Inc."
Expand Down
3 changes: 0 additions & 3 deletions .makerc

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_DIR := ./app

GOBIN := $(shell go env GOPATH)/bin
GOBIN ?= $(shell go env GOPATH)/bin

KIND_APP_IP ?= $(shell make -sC _run/kube kind-k8s-ip)
KIND_APP_PORT ?= $(shell make -sC _run/kube app-http-port)
Expand Down
1 change: 1 addition & 0 deletions _build/Dockerfile.akash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM debian:bullseye
LABEL "org.opencontainers.image.source"="https://github.com/ovrclk/akash"

COPY ./akash /bin/

Expand Down
Loading

0 comments on commit 8a29be1

Please sign in to comment.