Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
5010c5f
Red Hat Konflux update rhtpa (#21)
red-hat-konflux[bot] Sep 24, 2024
d1298a5
a basic konflux integration test
helio-frota Sep 24, 2024
1a5db8c
updating Containerfile location...
helio-frota Sep 24, 2024
238ba28
First whack at a workflow to sync upstream changes
jcrossley3 Sep 24, 2024
603c37c
fix the binary name
helio-frota Sep 24, 2024
fc11678
Remove space from workflow name
jcrossley3 Sep 24, 2024
93c0ff0
Bump version to take advantage of 'rebase' merge method
jcrossley3 Sep 24, 2024
718ba40
Let's try a different upstream sync action
jcrossley3 Sep 25, 2024
0fec5df
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Sep 25, 2024
3d8efb0
chore(deps): update konflux references
red-hat-konflux[bot] Sep 26, 2024
c6b721f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Sep 27, 2024
4d7158e
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Sep 28, 2024
700fb3d
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Sep 30, 2024
7320b91
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Sep 30, 2024
a18869c
chore(deps): update konflux references
red-hat-konflux[bot] Sep 30, 2024
20873ad
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 1, 2024
6eb06fe
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 1, 2024
b490961
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 1, 2024
42dec7d
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 1, 2024
1549208
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 1, 2024
7acd3d9
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 2, 2024
f64addf
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 2, 2024
1989da5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 3, 2024
574a421
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
af1cbce
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
cae150c
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
4df5e00
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
d995649
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
5771616
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
f9e767c
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 4, 2024
28220fa
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 7, 2024
4ed4b73
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 7, 2024
d6a7e9a
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 7, 2024
ff94e31
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 8, 2024
8e558b5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 9, 2024
2b71249
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 9, 2024
1bf79ea
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 10, 2024
22b668e
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 11, 2024
281e17f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 11, 2024
3112dd0
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 11, 2024
c9c6ff5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 14, 2024
dd576f8
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 14, 2024
cd244ff
Be consistent with file extensions
jcrossley3 Oct 14, 2024
2ba6fe4
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 15, 2024
670a76f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 16, 2024
cee1061
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 16, 2024
444b5e2
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 18, 2024
4e88f8d
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 22, 2024
14b43b6
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 22, 2024
dc96f8f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 24, 2024
8d4c3ef
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 24, 2024
d409a01
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 29, 2024
f6f0168
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 30, 2024
f6640cc
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 31, 2024
ee9f3a4
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 31, 2024
1cd1b69
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 31, 2024
9654c20
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Oct 31, 2024
3d38321
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 4, 2024
6b18b93
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 4, 2024
ff2e03d
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 5, 2024
86dbe70
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 5, 2024
53530d5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 5, 2024
3e8a0e5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 5, 2024
cb9b353
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 6, 2024
cf9732e
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 6, 2024
503a6f2
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 7, 2024
cb7314b
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 7, 2024
0ad28c0
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 7, 2024
e62cd24
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 8, 2024
fe0a19e
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 8, 2024
eb79a7c
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 11, 2024
332b959
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 12, 2024
d920873
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 13, 2024
4024d60
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 13, 2024
9b0d2f5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 13, 2024
d364f6f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 14, 2024
3854cc5
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 15, 2024
ac83d0d
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 15, 2024
d8d9aa9
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 18, 2024
84b8048
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 18, 2024
65ceafc
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 18, 2024
b0aec4a
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 19, 2024
2a45237
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 20, 2024
bd720c6
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 21, 2024
ece61fa
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 21, 2024
aab0c7f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 21, 2024
dabd6db
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 21, 2024
50fd1b7
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 21, 2024
fd2a8e1
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 22, 2024
af9fc88
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 22, 2024
1ad50cb
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 22, 2024
9384cdb
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 22, 2024
ad10ead
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 25, 2024
03a6e86
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 26, 2024
c5a72df
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 27, 2024
37ca8ea
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 27, 2024
bc5e916
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 28, 2024
1a85ba6
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 28, 2024
6e14158
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 29, 2024
e89d148
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Nov 29, 2024
f479b61
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 2, 2024
8ffeaa9
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 3, 2024
34c65e2
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 3, 2024
15019cd
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 3, 2024
bcc339c
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 4, 2024
a7d2c96
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 4, 2024
31a1b27
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 5, 2024
2d216bd
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 5, 2024
ea0f487
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 6, 2024
3e1e6b6
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 6, 2024
a0d493f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 6, 2024
b0e8d27
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 9, 2024
99a70d2
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 9, 2024
6969d79
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 10, 2024
ba1786f
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 10, 2024
3529ece
Merge branch 'main' of https://github.com/trustification/trustify
actions-user Dec 10, 2024
cc29f2b
Red Hat Konflux purge rhtpa
Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: sync-upstream

on:
schedule:
- cron: '0 * * * *'
# once every hour

workflow_dispatch:
inputs:
sync_test_mode:
description: 'Fork Sync Test Mode'
type: boolean
default: false

jobs:
sync_latest_from_upstream:
runs-on: ubuntu-latest
name: Sync latest commits from upstream repo

steps:
- name: Checkout target repo
uses: actions/checkout@v3
with:
ref: main
persist-credentials: false
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: main
target_repo_token: ${{ secrets.UPSTREAM_SYNC }}
upstream_sync_branch: main
upstream_sync_repo: trustification/trustify
test_mode: ${{ inputs.sync_test_mode }}

- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
48 changes: 48 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM registry.access.redhat.com/ubi9/ubi:latest

ARG RUST_VERSION="1.80.1"

RUN dnf install -y gcc openssl openssl-devel cmake gcc-c++ git curl-minimal

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION}

ENV PATH "$PATH:/root/.cargo/bin"

RUN mkdir /usr/src/project

COPY . /usr/src/project

WORKDIR /usr/src/project

RUN cargo build --release

FROM registry.access.redhat.com/ubi9/ubi-minimal:latest

LABEL com.redhat.component ="Trustify"
LABEL description ="Trustify"
LABEL io.k8s.description ="Trustify"
LABEL io.k8s.display-name ="Trustify"
LABEL io.openshift.tags ="Trustify"
LABEL name ="Trustify"
LABEL org.opencontainers.image.source="https://github.com/trustification/rhtpa"
LABEL konflux.additional-tags="tests"
LABEL summary ="Trustify"

RUN microdnf reinstall tzdata -y
ENV TZ=UTC
RUN mkdir trustify

COPY --from=0 /usr/src/project/target/release/trustd trustify
COPY --from=0 /usr/src/project/test.sh trustify

RUN useradd -ms /bin/bash trustify

RUN chown trustify -R trustify

RUN mkdir /licenses

COPY ./LICENSE /licenses/AL

USER trustify

WORKDIR trustify
27 changes: 27 additions & 0 deletions pipelines/it-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: tests
spec:
params:
- name: SNAPSHOT
type: string
- name: container-image
type: string
default: quay.io/redhat-user-workloads/trusted-content-tenant/rhtpa/rhtpa:tests
tasks:
- name: test
params:
- name: SNAPSHOT
value: "$(params.SNAPSHOT)"
taskSpec:
params:
- name: SNAPSHOT
type: string
steps:
- name: test-output
image: $(params.container-image)
script: |
#!/usr/bin/bash

./test.sh
24 changes: 24 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

./trustd &

APP_PID=$!

while ! curl -s localhost:8080 > /dev/null; do
echo "Waiting for trustify..."
sleep 5 # MSP pattern
done

echo "Available on localhost:8080"

HTTP_STATUS=$(curl -o /dev/null -s -w "%{http_code}" localhost:8080)

if [ "$HTTP_STATUS" -eq 200 ]; then
TEST_OUTPUT="SUCCESS"
else
TEST_OUTPUT="FAILURE"
fi

echo "Result: $TEST_OUTPUT"

kill $APP_PID
Loading