-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.02 KB
/
generic_runner.yaml
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
name: Terraform Runner Image Build and Publish
on:
push:
branches: [ 0.1-alpha ]
paths:
- 'docker/runner/generic/Dockerfile'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build and Push Docker Image
uses: mr-smithers-excellent/docker-build-push@v4
with:
image: "${{ secrets.DOCKER_HUB }}/klopac-generic-runner"
tag: 0.1
registry: docker.io
username: ${{ secrets.DOCKER_HUB }}
password: ${{ secrets.DOCKER_HUB_KEY }}
dockerfile: docker/runner/generic/Dockerfile
test:
runs-on: ubuntu-20.04
needs: build
container:
image: "docker.io/kloiadocker/klopac-generic-runner:0.1"
credentials:
username: ${{ secrets.DOCKER_HUB }}
password: ${{ secrets.DOCKER_HUB_KEY }}
steps:
- run: bash --version
name: Check bash version
- run: python3 --version
name: Check python version
- run: go version
name: Check go version