Remove fly and docker CI (#2)

This commit is contained in:
Leonora Tindall 2023-03-01 12:30:39 -06:00 committed by GitHub
commit fdf38d4e55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 137 deletions

View file

@ -44,4 +44,4 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: build-artifacts name: build-artifacts
path: artifacts path: artifacts

View file

@ -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

View file

@ -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"

View file

@ -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"