Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
New nodejs base image
Browse files Browse the repository at this point in the history
  • Loading branch information
upalatucci committed Oct 23, 2023
1 parent ade5b3b commit 23a207a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,10 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
push: true
tags: quay.io/nmstate/nmstate-console-plugin:latest
push: false
30 changes: 24 additions & 6 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ jobs:

- name: Build
run: yarn build

docker-image:
runs-on: ubuntu-latest
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
steps:
- name: Checkout
uses: actions/checkout@v2

- 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
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
push: false

e2e-tests:
name: Run e2e tests
runs-on: ubuntu-latest
Expand All @@ -62,12 +85,7 @@ jobs:
sudo install kubectl /usr/local/bin/kubectl
- name: Install podman
run: |
curl -LO https://github.com/containers/podman/releases/download/v3.4.4/podman-remote-static.tar.gz
tar -xvf podman-remote-static.tar.gz
sudo install podman-remote-static /usr/local/bin/podman
curl -O http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-github-containernetworking-plugins/containernetworking-plugins_1.1.1+ds1-1_amd64.deb
sudo dpkg -i containernetworking-plugins_1.1.1+ds1-1_amd64.deb
sudo apt-get -y install podman
- name: Create Cluster
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder container
FROM registry.access.redhat.com/ubi9/nodejs-18 AS build
FROM registry.ci.openshift.org/ocp/builder:rhel-8-base-nodejs-openshift-4.15 AS build

# Install yarn
RUN npm install -g yarn -s &>/dev/null
Expand Down

0 comments on commit 23a207a

Please sign in to comment.