-
Notifications
You must be signed in to change notification settings - Fork 7
executable file
·36 lines (36 loc) · 1.14 KB
/
actionet-r-release.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
name: ACTIONet-r-release
on:
push:
branches:
- 'R-release'
jobs:
main:
runs-on: ubuntu-latest
timeout-minutes: 3000
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Check file existence
id: check_buildx_existence
uses: andstor/file-existence-action@v1
with:
files: "/home/ubuntu/.docker/cli-plugins/docker-buildx"
- name: Set up Docker Buildx
if: steps.check_buildx_existence.outputs.file_exists == 'false'
id: buildx
uses: docker/setup-buildx-action@v1
with:
version: latest
driver-opts: network=host
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build and push latest docker
uses: docker/build-push-action@v2
with:
context: ./mini_docker
file: ./mini_docker/Dockerfile
push: true
build-args: GITHUB_PAT=${{ secrets.GITHUB_TOKEN }}
tags: actionet/r_release