Skip to content

Commit

Permalink
feat: add action to build editor images (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <[email protected]>
  • Loading branch information
vitaliy-guliy authored Jan 30, 2025
1 parent b7a895f commit 5234457
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/image-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# Copyright (c) 2025 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: image-publish

on:
push:
branches:
- main

jobs:

build:
name: build
runs-on: ubuntu-22.04
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Docker Build
run: |
SHORT_SHA1=$(git rev-parse --short=7 HEAD)
docker buildx build \
--push \
--progress=plain \
-f build/dockerfiles/Dockerfile \
-t quay.io/che-incubator/che-code-server:next \
-t quay.io/che-incubator/che-code-server:insiders \
-t quay.io/che-incubator/che-code-server:insiders-${SHORT_SHA1} \
.

0 comments on commit 5234457

Please sign in to comment.