forked from inclavare-containers/rats-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanually_compilation_testing_image.yml
More file actions
38 lines (31 loc) · 1.09 KB
/
manually_compilation_testing_image.yml
File metadata and controls
38 lines (31 loc) · 1.09 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
name: Build compilation testing image
# This is a manual trigger.
on: [workflow_dispatch]
jobs:
build-compilation-testing-image:
# Run all steps in the compilation testing containers
strategy:
matrix:
os: [anolis8.6, ubuntu20.04]
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
# Because "Build and push" step `context` field can't be subdir,
# we need to copy files needed by dockerfile to root dir of the project
- name: Copy context for docker build
run: |
cp -r .github/workflows/docker .
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.TEST_DOCKER_USERNAME }}
password: ${{ secrets.TEST_DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile-compilation-testing-${{ matrix.os }}
platforms: linux/amd64
push: true
tags: runetest/compilation-testing:${{ matrix.os }}