forked from ITHACA-FV/ITHACA-FV
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·91 lines (68 loc) · 2.24 KB
/
docker_ithaca.yml
File metadata and controls
executable file
·91 lines (68 loc) · 2.24 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Docker
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
jobs:
docker-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./dockerfiles/arm64
platforms: linux/arm64
push: true
tags: ithacafv/ithacafv:manifest-arm64
docker-amd64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./dockerfiles/amd64
platforms: linux/amd64
push: true
tags: ithacafv/ithacafv:manifest-amd64
#build-manifest:
#needs: [docker-amd64, docker-arm64]
#runs-on: ubuntu-latest
#steps:
#- name: Checkout
#uses: actions/checkout@v2
#- name: Set up QEMU
#uses: docker/setup-qemu-action@v1
#- name: Set up Docker Buildx
#uses: docker/setup-buildx-action@v1
#- name: Login to DockerHub
#uses: docker/login-action@v1
#with:
#username: ${{ secrets.DOCKER_USERNAME }}
#password: ${{ secrets.DOCKER_PASSWORD }}
#- name: manifest creation
#run: docker manifest create ithacafv/ithacafv:manifest-latest --amend ithacafv/ithacafv:manifest-amd64 --amend ithacafv/ithacafv:manifest-arm64
#- name: push manifest
#run: docker manifest push ithacafv/ithacafv:manifest-latest