This repository was archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
55 lines (47 loc) · 1.61 KB
/
test.yaml
File metadata and controls
55 lines (47 loc) · 1.61 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on: [push]
jobs:
build-temp-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build-temp-container
run: |
echo ${PASSWORD} | docker login -u $USERNAME --password-stdin
docker build -t hamelsmu/app-token:temp -f prebuild.Dockerfile .
docker push hamelsmu/app-token:temp
env:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
test-container:
needs: [build-temp-container]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v1
# env:
# INPUT_APP_PEM: ${{ secrets.APP_PEM }}
# INPUT_APP_ID: ${{ secrets.APP_ID }}
# tested with https://github.com/apps/fastpages-chatops
- name: test
id: test
uses: docker://hamelsmu/app-token:temp
env:
INPUT_APP_PEM: ${{ secrets.APP_PEM }}
INPUT_APP_ID: ${{ secrets.APP_ID }}
- name: pre-build action image
run: |
cd $GITHUB_WORKSPACE
echo ${PASSWORD} | docker login -u $USERNAME --password-stdin
docker build -t hamelsmu/app-token -f prebuild.Dockerfile .
docker push hamelsmu/app-token
env:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# tested withhttps://github.com/apps/fastpages-chatops
- name: final-test
uses: machine-learning-apps/actions-app-token@master
with:
APP_PEM: ${{ secrets.APP_PEM }}
APP_ID: ${{ secrets.APP_ID }}