From 330084360da7350e3f76da91cb051581fa0aa6d4 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Mon, 3 Feb 2025 21:20:23 +0200 Subject: [PATCH] feat: Publish che-code-server:latest (#3) Signed-off-by: vitaliy-guliy --- .github/workflows/publish-latest.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/publish-latest.yml diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml new file mode 100644 index 0000000..c233651 --- /dev/null +++ b/.github/workflows/publish-latest.yml @@ -0,0 +1,38 @@ +# +# 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: Publish che-code-server:latest + +on: workflow_dispatch + +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: | + docker buildx build \ + --push \ + --progress=plain \ + -f build/dockerfiles/Dockerfile \ + -t quay.io/che-incubator/che-code-server:latest \ + .