Benchmark post #26
Workflow file for this run
This file contains 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: Pull request | |
on: | |
pull_request: | |
branches: "*" | |
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: yezzey-gp/gp_modified_for_yezzey | |
ref: yezzey_6_25_1_pure_squashed | |
- 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: | |
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 | |