generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
156 lines (140 loc) · 3.74 KB
/
tmp.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: tmp
# Global env variables
on:
push:
# paths:
# - '.github/workflows/tmp.yaml'
# - '.github/actions/docker/action.yaml'
workflow_dispatch:
# inputs:
# # server_branch:
# # required: true
# # type:
# # default: 'dev'
# logLevel:
# description: 'Log level'
# required: true
# # default: 'warning'
# type: choice
# # options: ${{fromJson(env.chooice)}}
# options:
# - info
# - ${{fromJson(env.choice)}}
# input variables - for automatic builds based on tag or push we need to figure out how to generate values
# push:
# ---
jobs:
parse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: parse
uses: pixelfederation/gh-action-log-parser@wip
with:
filePath: "da2.txt"
- name: parse2
uses: pixelfederation/gh-action-log-parser@wip
with:
filePath: "ts2.txt"
# prepare:
# # uses: pixelfederation/gh-action-gh-release/.github/workflows/private-wf.yaml@main
# runs-on: pxfd-linux-c1-amd64
#
# steps:
# # - uses: actions/checkout@v4
#
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: arn:aws:iam::810441965206:role/gha-runner-role
# aws-region: eu-west-1
# role-chaining: true
# retry-max-attempts: 3
# role-skip-session-tagging: true
#
# - run: |
# aws s3 ls s3://airflow-dev-810441965206/
#
# - run: |
# aws s3 ls s3://airflow-dev-810441965206/dags/
# - run: |
# binFiles=$(echo "${{ env.INPUT }}" | jq -Rc 'split(",") | @json')
#
# # - run: |
# # echo ok> tmp.txt
# # aws s3 cp tmp.txt s3://airflow-dev-810441965206/
# - uses: docker://alpine:3.18.4
# with:
# entrypoint: pwd
# - uses: actions/hello-world-docker-action@v2
# with:
# who-to-greet: 'Mona the Octocat'
# - name: Set Docker image tag
# id: set-tag
# run: |
# echo "tag=3.18.0" >> $GITHUB_OUTPUT
#
# - uses: ./.github/actions/docker/
# env:
# TEST_OUT: ok
# with:
# image: alpine:${{ steps.set-tag.outputs.tag }}
# args: env
# docker_env: |
# TEST_IN1=ok
# TEST_IN2=ok
# - name: Set Docker image tag
# id: set-tag
# run: |
# echo "tag=3.18.0" >> $GITHUB_OUTPUT
#
# - name: Use Docker image
# env:
# tag: 3.18.0
# uses: docker://alpine:${ tag }
# - name: Set image tag
# run: |
# env
# docker pull alpine:3.18.0
# docker pull alpine:3.17.3
# env:
# # sub: "VAR"
# # run: |
# # echo "TEST_VAR=${{ vars.TEST_VAR }}"
# - name: release
# uses: pixelfederation/gh-action-gh-release@main
# ---
# name: Docker build and push to ECR
#
# env:
# ecr_username: AWS
# ecr_registry: 266775278674.dkr.ecr.eu-west-1.amazonaws.com
# ecr_repo: zeppelin
# vault_url: https://vault.kube.shared.pxfd.tech
# vault_role: action-github-runner
#
#
# on:
# push:
# tags:
# - '*'
# jobs:
# build-and-push:
# strategy:
# matrix:
# arch:
# - amd64
# runs-on: pxfd-linux-c1-${{ matrix.arch }}
#
# steps:
# - name: test
# run: |
# echo "ok"
# echo "sleep 10"
# sleep 10
# - name: Get ECR login
# run: |
# set -u
# ECR_PASSWORD=$(aws ecr get-login-password)
# echo "::add-mask::${ECR_PASSWORD}"
# echo "ecr_password=${ECR_PASSWORD}" >> $GITHUB_ENV