Skip to content

Update image-build.yaml #34

Update image-build.yaml

Update image-build.yaml #34

Workflow file for this run

#
# Copyright (c) 2023 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:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# with:
# token: ${{ secrets.CHE_INCUBATOR_BOT_TOKEN }}
- name: Login to quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: list
run: |
df -h
docker rmi $(docker image ls -aq)
df -h
- name: Build and push image
uses: docker/build-push-action@v4
with:
context: .
file: build/dockerfiles/Dockerfile
push: true
tags: quay.io/che-incubator/che-idea-dev-server:next,quay.io/che-incubator/che-idea-dev-server:latest