Skip to content

Commit

Permalink
chore: testing image copy
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuge committed Jan 31, 2025
1 parent 9d704bd commit b618f8b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 37 deletions.
12 changes: 10 additions & 2 deletions .github/actions/build-publish-container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ runs:
- name: Push to GitHub container registry
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build_app_image.outputs.image || steps.build_service_image.outputs.image }}
tags: ${{ steps.build_app_image.outputs.tags || steps.build_service_image.outputs.tags }}
image: rabbitmq
tags: 4.0-management
registry: ghcr.io/govalta
username: ${{ github.actor }}
password: ${{ inputs.ghcr-token }}
- name: Push to GitHub container registry
uses: redhat-actions/push-to-registry@v2
with:
image: busybox
tags: '1.37'
registry: ghcr.io/govalta
username: ${{ github.actor }}
password: ${{ inputs.ghcr-token }}
56 changes: 21 additions & 35 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,28 @@
name: e2e
name: Promote Apps

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
APP:
description: APP to run against.
required: true
ENVIRONMENT:
description: Environment to run against.
required: true
TAGS:
description: Tags of suite of tests to run.
required: true
IMAGE:
description: Flag indicating if regression should be skipped.
type: boolean
required: false
default: false
TAG:
description: APPS to promote.
required: false

jobs:
e2e:
runs-on: ubuntu-22.04
environment:
name: ${{ github.event.inputs.ENVIRONMENT }}-e2e
copy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: E2E Test
env:
NODE_OPTIONS: '--max_old_space_size=4096'
uses: ./.github/actions/nx-cypress-e2e
- name: Build container
uses: ./.github/actions/build-publish-container
with:
app: ${{ github.event.inputs.APP }}
environment: ${{ github.event.inputs.ENVIRONMENT }}
tags: ${{ github.event.inputs.TAGS }}
core-api-client-secret: ${{ secrets.CY_CORE_API_CLIENT_SECRET }}
core-api-user-password: ${{ secrets.CY_CORE_API_USER_PASSWORD }}
api-client-secret: ${{ secrets.CY_CLIENT_SECRET }}
cy-password: ${{ secrets.CY_PASSWORD }}
cy-password-2: ${{ secrets.CY_PASSWORD2 }}
cy-password-3: ${{ secrets.CY_PASSWORD3 }}
app: 'test'
redhat-io-username: ${{ secrets.REGISTRY_REDHAT_IO_USER }}
redhat-io-password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
build-context: './'
container-file: './Dockerfile'
ghcr-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM busybox:1.37

USER 1001:0

FROM rabbitmq:4.0-management

USER 1001:0

0 comments on commit b618f8b

Please sign in to comment.