File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 5
5
types : [published]
6
6
7
7
jobs :
8
- build-and- ami :
8
+ build-ami :
9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
49
49
50
50
- name : Build AMI
51
51
run : |
52
- # Use release tag as version
53
- just --justfile packer/justfile make-overlay
54
- just --justfile packer/justfile make-image
52
+ cd packer
53
+ packer init .
54
+ just build
55
+ just make-overlay
56
+ VERSION=${GITHUB_REF_NAME} just make-image
Original file line number Diff line number Diff line change 1
- version := " 0.1.0"
1
+ version := env ( " VERSION" , " 0.1.0")
2
2
vector-version := " 0.50.0"
3
3
overlay-archive := " timeboost-overlay.tar.gz"
4
4
@@ -12,7 +12,7 @@ format:
12
12
packer fmt .
13
13
14
14
build :
15
- cargo build --release --bin timeboost --target x8 6 _6 4 -unknown-linux-gnu
15
+ cargo build --release --bin timeboost
16
16
17
17
make-overlay :
18
18
#!/usr/bin/env bash
@@ -23,7 +23,7 @@ make-overlay:
23
23
dir=$(mktemp -d)
24
24
cp -R overlay $dir/
25
25
mkdir -p $dir/ overlay/ usr/ local/ bin
26
- cp target/ release/ timeboost $dir/ overlay/ usr/ local/ bin/ timeboost
26
+ cp .. / target/ release/ timeboost $dir/ overlay/ usr/ local/ bin/ timeboost
27
27
tar czf {{ overlay-archive}} -C $dir/ overlay/ .
28
28
29
29
validate :
Original file line number Diff line number Diff line change 1
1
packer {
2
2
required_plugins {
3
3
amazon = {
4
- version = " >= 1.5 .0"
4
+ version = " >= 1.2 .0"
5
5
source = " github.com/hashicorp/amazon"
6
6
}
7
7
}
@@ -42,8 +42,6 @@ source "amazon-ebs" "al2" {
42
42
}
43
43
44
44
ssh_username = " ec2-user"
45
- ssh_keypair_name = " timeboost-eu-central-1"
46
- ssh_private_key_file = " ~/.ssh/timeboost-eu-central-1.pem"
47
45
}
48
46
49
47
build {
You can’t perform that action at this time.
0 commit comments