mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-01-07 00:13:06 +00:00
Remove secrets check from container yml file
This commit is contained in:
parent
84b0e4423a
commit
889e6d4cf7
28
.github/workflows/container-image.yml
vendored
28
.github/workflows/container-image.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
inputs:
|
inputs:
|
||||||
image_tag:
|
image_tag:
|
||||||
type: string
|
type: string
|
||||||
default: ${{ github.event.number }}
|
default: "3181"
|
||||||
outputs:
|
outputs:
|
||||||
image:
|
image:
|
||||||
description: The resulting image link
|
description: The resulting image link
|
||||||
@ -30,30 +30,18 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
image: ${{ steps.build.outputs.image }}
|
image: ${{ steps.build.outputs.image }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check secrets
|
|
||||||
id: secrets
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
|
||||||
if [[ -z "$QUAY_PASSWORD" || -z "$QUAY_USER" ]]; then
|
|
||||||
echo "User does not have access to secrets, skipping workflow"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
QUAY_USER: ${{ secrets.QUAY_USER }}
|
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
if: ${{ steps.secrets.outcome == 'success' }}
|
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get submodules hash
|
- name: Get submodules hash
|
||||||
id: submodules
|
id: submodules
|
||||||
if: ${{ steps.secrets.outcome == 'success' }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache submodules
|
- name: Cache submodules
|
||||||
if: ${{ steps.secrets.outcome == 'success' }}
|
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@ -63,7 +51,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build binaries
|
- name: Build binaries
|
||||||
id: build
|
id: build
|
||||||
if: ${{ steps.secrets.outcome == 'success' }}
|
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
make -j${NPROC} V=1 QUICK_AND_DIRTY_COMPILER=1 NIMFLAGS="-d:disableMarchNative -d:postgres -d:chronicles_colors:none" wakunode2
|
make -j${NPROC} V=1 QUICK_AND_DIRTY_COMPILER=1 NIMFLAGS="-d:disableMarchNative -d:postgres -d:chronicles_colors:none" wakunode2
|
||||||
@ -76,12 +64,12 @@ jobs:
|
|||||||
echo "image=${IMAGE}" >> $GITHUB_OUTPUT
|
echo "image=${IMAGE}" >> $GITHUB_OUTPUT
|
||||||
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
docker login -u ${QUAY_USER} -p ${QUAY_PASSWORD} quay.io
|
|
||||||
docker build -t ${IMAGE} -f docker/binaries/Dockerfile.bn.amd64 --label quay.expires-after=30d .
|
docker build -t ${IMAGE} -f docker/binaries/Dockerfile.bn.amd64 --label quay.expires-after=30d .
|
||||||
docker push ${IMAGE}
|
docker push ${IMAGE}
|
||||||
env:
|
env:
|
||||||
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
QUAY_USER: ${{ secrets.QUAY_USER }}
|
|
||||||
PR_NUMBER: ${{ inputs.image_tag}}
|
PR_NUMBER: ${{ inputs.image_tag}}
|
||||||
|
|
||||||
- name: Comment PR
|
- name: Comment PR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user