This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch nightly build to GH action (#290)
* Switch nightly build to GH action Run a GitHub action job everytime a change is merged, instead of using centos-ci. See eclipse-che/che#18072 Signed-off-by: Eric Williams <[email protected]> * Update secret name Signed-off-by: Eric Williams <[email protected]> * Make action names more clear Signed-off-by: Eric Williams <[email protected]> * Abstract centos-ci only steps Only use provided scripts for: * base image build + push * happy path image build + push Signed-off-by: Eric Williams <[email protected]>
- Loading branch information
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# Copyright (c) 2020 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
name: Build/Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
nightly-build-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone source code | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Login to quay.io | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_USERNAME }} | ||
password: ${{ secrets.QUAY_PASSWORD }} | ||
|
||
- name: Build and push base images | ||
run: /bin/bash arbitrary-users-patch/build_images.sh --push | ||
|
||
- name: Build and push happy path image | ||
run: /bin/bash arbitrary-users-patch/happy-path/build_happy_path_image.sh --push | ||
|
||
- name: Build and push devfile image | ||
run: | | ||
SHORT_SHA1=$(git rev-parse --short HEAD) | ||
docker build -t che-devfile-registry -f ./build/dockerfiles/Dockerfile --target registry . | ||
docker tag che-devfile-registry quay.io/eclipse/che-devfile-registry:nightly | ||
docker push quay.io/eclipse/che-devfile-registry:nightly | ||
docker tag che-devfile-registry quay.io/eclipse/che-devfile-registry:${SHORT_SHA1} | ||
docker push quay.io/eclipse/che-devfile-registry:${SHORT_SHA1} |
11 changes: 10 additions & 1 deletion
11
.github/workflows/main.yml → .github/workflows/pr-checks.yml
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