-
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (33 loc) · 1.11 KB
/
continuous-integration.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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
on:
- pull_request
name: "Continuous Integration"
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
env:
DOCKER_IMAGE: sergioisidoro/github-transifex-action
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- name: "Checkout"
uses: actions/checkout@v1
- name: "Build Docker image"
run: $(which docker) build --tag ${DOCKER_IMAGE}:latest .
- name: "Run simple workflow"
run: $(which docker) run
--interactive --rm
--env-file docker-test.env --env INPUT_TX_TOKEN=${TX_TOKEN}
--workdir=/app
--volume ${GITHUB_WORKSPACE}:/app
${DOCKER_IMAGE}:latest
- name: "Run git workflow"
run: $(which docker) run
--interactive --rm
--env-file git-flow-docker-test.env
--env INPUT_TX_TOKEN=${TX_TOKEN}
--env INPUT_CURRENT_BRANCH=$GITHUB_HEAD_REF
--env INPUT_SKIP_PUSH_COMMIT=true
--workdir=/app
--volume ${GITHUB_WORKSPACE}:/app
${DOCKER_IMAGE}:latest