-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (44 loc) · 1.25 KB
/
tests.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
name: Pull request
on:
pull_request:
branches: "*"
push:
branches:
- "v*"
jobs:
test:
name: Run tests
runs-on: ubuntu-20.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Check out code
uses: actions/checkout@v3
with:
repository: open-gpdb/gpdb
ref: OPENGPDB_STABLE
- name: set PR ref
if: ${{github.event_name == 'pull_request'}}
run: echo "GITHUB_REF=${{github.head_ref}}" >> $GITHUB_ENV
- name: set push ref
if: ${{github.event_name == 'push'}}
run: echo "GITHUB_REF=${{github.ref_name}}" >> $GITHUB_ENV
- name: Build docker image
uses: docker/build-push-action@v2
with:
file: docker/yezzey/Dockerfile
context: .
push: false
load: true
tags: yezzey:1.0
build-args: |
accessKeyId=${{secrets.ACCESS_KEY_ID}}
secretAccessKey=${{secrets.SECRET_ACCESS_KEY}}
bucketName=test-bucket-yezzey
yezzeyRef=${{env.GITHUB_REF}}
- name: Run Docker
shell: bash
run: |
docker run yezzey:1.0