-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
48 lines (42 loc) · 1013 Bytes
/
.drone.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
---
kind: pipeline
type: ssh
name: create-docker-images
server:
host:
from_secret: server_host_umac
user:
from_secret: server_host_umac_user
ssh_key:
from_secret: ssh_key_umac
steps:
- name: git_login
environment:
USERNAME:
from_secret: docker_username
PASSWORD:
from_secret: docker_password
commands:
- echo $PASSWORD | docker login -u $USERNAME --password-stdin
- docker buildx create --name multiarch1 --driver docker-container --use
when:
event:
- promote
- name: build_test_alpine_as_latest
commands:
- docker build --tag andrey0001/strongswan:latest .
- docker rmi andrey0001/strongswan:latest
when:
branch:
- alpine
- name: build_and_push_alpine_as_latest
commands:
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag andrey0001/strongswan:latest --tag andrey0001/strongswan:${DRONE_BRANCH} .
when:
branch:
- alpine
event:
- promote
node:
instance: umac
type: ssh