-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
57 lines (54 loc) · 1.39 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 2.1
jobs:
build:
environment:
MINIO_STORAGE: https://storage.offen.dev
docker:
- image: cimg/ruby:2.7
working_directory: ~/deb
steps:
- checkout
- install_mc
- run:
name: Install dependencies
command: sudo apt-get update && sudo apt-get install -y dpkg-sig
- run:
name: Download and import signing key
command: |
mc cp offen/secrets/signing-key.asc /tmp
gpg --import /tmp/signing-key.asc
- run:
name: Install fpm and dpkg-sig
command: |
gem install --no-document fpm
sudo apt-get install dpkg-sig
- run:
name: Package deb
command: ./package.sh
- run:
name: Upload to S3
command: |
mc cp *.deb offen/deb
mc cp $(ls *.deb | head -n 1) offen/deb/offen_latest_amd64.deb
workflows:
version: 2
build:
jobs:
- build:
context: Storage
filters:
branches:
only:
- main
commands:
install_mc:
description: Install MinIO client
steps:
- run:
name: Download client
working_directory: '~'
command: |
curl https://dl.min.io/client/mc/release/linux-amd64/mc -o mc
chmod +x mc
sudo mv mc /usr/local/bin/mc
command -v mc