Fix socat bug on macos #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 |