Remove fly and docker CI (#2)
This commit is contained in:
parent
9673f563e0
commit
fdf38d4e55
4 changed files with 1 additions and 137 deletions
2
.github/workflows/buildci.yml
vendored
2
.github/workflows/buildci.yml
vendored
|
|
@ -44,4 +44,4 @@ jobs:
|
|||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: artifacts
|
||||
path: artifacts
|
||||
|
|
|
|||
78
.github/workflows/docker.yml
vendored
78
.github/workflows/docker.yml
vendored
|
|
@ -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
|
||||
20
.github/workflows/flyci.yml
vendored
20
.github/workflows/flyci.yml
vendored
|
|
@ -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"
|
||||
38
fly.toml
38
fly.toml
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue