Revert oci.Dockerfile changes; attempt to install nodejs 16 there #43
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
# | |
# Copyright (c) 2019-2023 Red Hat, Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
name: Devtools container build | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build-devtools-img: | |
runs-on: ubuntu-20.04 | |
outputs: | |
git-sha: ${{ steps.git-sha.outputs.sha }} | |
steps: | |
- name: Checkout devworkspace-operator source code | |
uses: actions/checkout@v3 | |
- name: Set output for Git short SHA | |
id: git-sha | |
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Login to quay.io | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
registry: quay.io | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push devworkspace-devtools image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: true | |
tags: | | |
quay.io/devfile/devworkspace-devtools:latest | |
quay.io/devfile/devworkspace-devtools:sha-${{ steps.git-sha.outputs.sha }} | |
file: ./build/devtools.Dockerfile |