diff --git a/.github/workflows/buildci.yml b/.github/workflows/buildci.yml index 1658b83..ec7c19b 100644 --- a/.github/workflows/buildci.yml +++ b/.github/workflows/buildci.yml @@ -44,4 +44,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: build-artifacts - path: artifacts \ No newline at end of file + path: artifacts diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index a6f88be..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Docker CI - -on: - push: - tags: - - 'v*' - -jobs: - docker-build: - strategy: - matrix: - arch: [amd64, arm64] - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@v2 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: wantguns - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - - name: Building the ${{ matrix.arch }} image - run: | - docker build . \ - -t wantguns/bin:${{ matrix.arch }} \ - --build-arg ARCH=${{ matrix.arch }} - mkdir -p artifacts/images - docker save wantguns/bin:${{ matrix.arch }} > artifacts/images/${{ matrix.arch }}.tar - - - name: Pushing the ${{ matrix.arch }} image - run: | - docker push wantguns/bin:${{ matrix.arch }} - - - name: Temporarily saving the image - uses: actions/upload-artifact@v2 - with: - name: docker-artifacts - path: artifacts/images - retention-days: 1 - - - docker-push: - needs: docker-build - runs-on: ubuntu-latest - steps: - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: wantguns - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - - name: Retrieve saved images - uses: actions/download-artifact@v2 - with: - name: docker-artifacts - path: artifacts/images - - - name: Docker load images - run: | - pushd artifacts/images - docker load < amd64.tar - docker load < arm64.tar - - - name: Creating a multi-arch manifest - run: | - docker manifest create \ - wantguns/bin:latest \ - --amend wantguns/bin:amd64 \ - --amend wantguns/bin:arm64 - - docker manifest annotate wantguns/bin:latest \ - wantguns/bin:arm64 --arch arm64 - - - name: Push the manifest - run: | - docker manifest push wantguns/bin:latest \ No newline at end of file diff --git a/.github/workflows/flyci.yml b/.github/workflows/flyci.yml deleted file mode 100644 index 9c08b46..0000000 --- a/.github/workflows/flyci.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Fly.io Deploy - -on: - workflow_run: - workflows: ["Docker CI"] - types: - - completed - -env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} - -jobs: - deploy: - name: Deploy app - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: superfly/flyctl-actions@1.1 - with: - args: "deploy --detach" diff --git a/fly.toml b/fly.toml deleted file mode 100644 index b412f98..0000000 --- a/fly.toml +++ /dev/null @@ -1,38 +0,0 @@ -app = "basedbin" - -kill_signal = "SIGINT" -kill_timeout = 5 -processes = [] - -[build] - image = "wantguns/bin" - -[experimental] - allowed_public_ports = [] - auto_rollback = true - -[[services]] - http_checks = [] - internal_port = 6162 - processes = ["app"] - protocol = "tcp" - script_checks = [] - - [services.concurrency] - hard_limit = 25 - soft_limit = 20 - type = "connections" - - [[services.ports]] - handlers = ["http"] - port = 80 - - [[services.ports]] - handlers = ["tls", "http"] - port = 443 - - [[services.tcp_checks]] - grace_period = "1s" - interval = "15s" - restart_limit = 0 - timeout = "2s"