-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.08 KB
/
ci.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
name: CI
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: |
# Run test suite in a docker container
cp ppd test/
cd test
docker run -w /src -v $(pwd):/src ubuntu bash -c "chmod +x test.sh; ./test.sh"
# ci:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Build image
# run: |
# # Login dockerhub
# pwd="${{ secrets.dockerhub }}"
# docker login -u="plazzari" -p="${pwd}"
# # Get version
# VERSION=$(awk -F '[="]' '/^VERSION/ {print $3}' terraform-repl)
# # Build docker images
# docker build . --tag "plazzari/terraform-repl:${VERSION}"
# docker tag "plazzari/terraform-repl:${VERSION}" plazzari/terraform-repl:latest
# # Deploy docker images
# docker push "plazzari/terraform-repl:${VERSION}"
# docker push plazzari/terraform-repl:latest