Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and push image for QA #1339

Merged
merged 31 commits into from
Sep 21, 2023
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2af4b44
Create push_to_registry.yml
valeraBr Sep 20, 2023
61c2528
Update push_to_registry.yml
valeraBr Sep 20, 2023
4fc7220
Update push_to_registry.yml
valeraBr Sep 20, 2023
5bfe113
Update push_to_registry.yml
valeraBr Sep 20, 2023
592e74e
Merge pull request #1325 from memphisdev/valeraBr-patch-1
valeraBr Sep 20, 2023
236dcd4
Update push_to_registry.yml
valeraBr Sep 20, 2023
e25f5e0
Update push_to_registry.yml
valeraBr Sep 20, 2023
bb7cbb4
Merge pull request #1326 from memphisdev/valeraBr-patch-1
valeraBr Sep 20, 2023
6e7c4d9
Update push_to_registry.yml
valeraBr Sep 20, 2023
0a4471d
Merge pull request #1327 from memphisdev/valeraBr-patch-1
valeraBr Sep 20, 2023
b2a838a
Update push_to_registry.yml
valeraBr Sep 20, 2023
0504dc1
Merge pull request #1328 from memphisdev/valeraBr-patch-2
valeraBr Sep 20, 2023
ff2c29f
Update push_to_registry.yml
valeraBr Sep 20, 2023
7091ecc
Merge pull request #1329 from memphisdev/valeraBr-patch-2
valeraBr Sep 20, 2023
ecdfac8
Update push_to_registry.yml
valeraBr Sep 20, 2023
bff401f
Merge pull request #1330 from memphisdev/valeraBr-patch-2
valeraBr Sep 20, 2023
efba892
Update push_to_registry.yml
valeraBr Sep 20, 2023
f92e5af
Merge pull request #1331 from memphisdev/valeraBr-patch-2
valeraBr Sep 20, 2023
2eced50
Update push_to_registry.yml
valeraBr Sep 20, 2023
83991ac
Merge pull request #1332 from memphisdev/valeraBr-patch-2
valeraBr Sep 20, 2023
68c99ee
Update push_to_registry.yml
valeraBr Sep 20, 2023
fe06911
Merge pull request #1333 from memphisdev/valeraBr-patch-3
valeraBr Sep 20, 2023
c3cb7e4
Update push_to_registry.yml
valeraBr Sep 20, 2023
9a9b8b4
Merge pull request #1334 from memphisdev/valeraBr-patch-1
valeraBr Sep 20, 2023
6871665
Update push_to_registry.yml
valeraBr Sep 20, 2023
36179e4
Merge pull request #1335 from memphisdev/valeraBr-patch-1
valeraBr Sep 20, 2023
e811234
Update push_to_registry.yml
valeraBr Sep 20, 2023
73b26bd
Merge pull request #1336 from memphisdev/valeraBr-patch-1
valeraBr Sep 20, 2023
e3d49a8
Update push_to_registry.yml
valeraBr Sep 20, 2023
7c9a98b
Merge pull request #1338 from memphisdev/valeraBr-patch-2
valeraBr Sep 20, 2023
9bc9f98
Update push_to_registry.yml
valeraBr Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/push_to_registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build and push image for QA
on:
pull_request_review:
types: [submitted]
branches:
- "master"

jobs:
approved:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Starting
run: echo "This PR was approved"
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildxe
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get Pull Request Number
run: echo "PULL_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}')" >> $GITHUB_ENV
shell: bash
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
memphisos/memphis-qa:latest
memphisos/memphis-qa:${{ env.PULL_NUMBER }}