forked from adoptium/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.23 KB
/
build.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
name: Docker
on:
pull_request:
paths:
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/**
branches:
- master
push:
paths:
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/**
branches:
- master
jobs:
build-and-push-centos6:
name: Centos6
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker Build & Push Centos6 Image to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ./ansible/Dockerfile.CentOS6
repository: adoptopenjdk/centos6_build_image
tags: latest
push: ${{ github.ref == 'refs/heads/master' }}
build-and-push-alpine3:
name: Alpine3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker Build & Push Alpine3 Image to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ./ansible/Dockerfile.Alpine3
repository: adoptopenjdk/alpine3_build_image
tags: latest
push: ${{ github.ref == 'refs/heads/master' }}