2023-03-10 20:59:56 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2023-04-10 18:12:08 +00:00
|
|
|
build:
|
2023-03-10 21:03:20 +00:00
|
|
|
machine: # executor type
|
|
|
|
image: ubuntu-2004:202010-01 # # recommended linux image - includes Ubuntu 20.04, docker 19.03.13, docker-compose 1.27.4
|
2023-03-10 20:59:56 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
2023-03-10 21:03:20 +00:00
|
|
|
- run:
|
|
|
|
name: install dependencies
|
|
|
|
command: sudo apt-get install bash curl
|
|
|
|
|
|
|
|
- run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
2023-03-12 18:17:28 +00:00
|
|
|
|
2023-04-30 12:03:14 +00:00
|
|
|
- run:
|
|
|
|
name: Download GeoLite2-Country database
|
|
|
|
command: |
|
|
|
|
curl -s -L "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=$MAX_TOKEN&suffix=tar.gz" -o GeoLite2-Country.tar.gz
|
|
|
|
tar -xzf GeoLite2-Country.tar.gz --strip-components 1 --wildcards "*.mmdb"
|
|
|
|
|
2023-03-10 20:59:56 +00:00
|
|
|
- run:
|
2023-03-25 20:15:00 +00:00
|
|
|
name: Build and publish dockerfiles
|
|
|
|
command: sh docker.sh
|
2023-03-10 20:59:56 +00:00
|
|
|
|
2023-05-03 19:34:24 +00:00
|
|
|
buildarm:
|
2023-05-03 19:35:11 +00:00
|
|
|
machine:
|
|
|
|
image: ubuntu-2004:202101-01
|
2023-05-03 19:34:24 +00:00
|
|
|
resource_class: arm.medium
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: install dependencies
|
|
|
|
command: sudo apt-get install bash curl
|
|
|
|
|
|
|
|
- run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Download GeoLite2-Country database
|
|
|
|
command: |
|
|
|
|
curl -s -L "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=$MAX_TOKEN&suffix=tar.gz" -o GeoLite2-Country.tar.gz
|
|
|
|
tar -xzf GeoLite2-Country.tar.gz --strip-components 1 --wildcards "*.mmdb"
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Build and publish dockerfiles
|
2023-05-03 19:37:31 +00:00
|
|
|
command: sh docker.arm64.sh
|
2023-05-03 19:34:24 +00:00
|
|
|
|
2023-03-10 20:59:56 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build-all:
|
|
|
|
jobs:
|
|
|
|
- build:
|
2023-05-03 19:34:24 +00:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- unstable
|
|
|
|
- buildarm:
|
2023-03-10 20:59:56 +00:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
2023-04-18 15:56:14 +00:00
|
|
|
- master
|
|
|
|
- unstable
|