forked from anaconda/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (56 loc) · 2.05 KB
/
anaconda_amazonlinux_ci.yml
File metadata and controls
62 lines (56 loc) · 2.05 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
name: Build Anaconda3 amazonlinux Image
on:
push:
tags:
- 'anaconda3-*'
paths:
- 'anaconda3/amazonlinux/Dockerfile'
- '.github/workflows/anaconda_amazonlinux_ci.yml'
pull_request:
paths:
- 'anaconda3/amazonlinux/Dockerfile'
- '.github/workflows/anaconda_amazonlinux_ci.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Login to DockerHub
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480
with:
platforms: linux/arm64/v8
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25
with:
version: latest
driver-opts: network=host
- name: Docker meta
id: meta
uses: docker/metadata-action@f2a13332ac1ce8c0a71aeac48a150dbb1838ab67
with:
images: |
continuumio/anaconda3
tags: |
type=ref,event=branch,suffix=-amazonlinux
type=ref,event=pr,suffix=-amazonlinux
type=match,pattern=anaconda3-(.*),group=1,suffix=-amazonlinux
flavor: |
latest=false
- name: build-push anaconda3/amazonlinux
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: ./anaconda3/amazonlinux
builder: ${{ steps.buildx.outputs.name }}
file: ./anaconda3/amazonlinux/Dockerfile
platforms: linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') }}