Skip to content

Commit

Permalink
Oh yeah, cant do that
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy committed Aug 17, 2023
1 parent 946b186 commit 8c0fec5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/integration-test-containers.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Build Integration Test Containers

on:
push:
branches:
Expand Down Expand Up @@ -81,6 +83,36 @@ jobs:
env:
PLATFORM: linux/${{ matrix.arch }}

push-manifest:
runs-on: ubuntu-latest
needs:
- rebuild-containers
- test-containers
if: needs.test-containers.outputs.changed == 'true'
steps:
- uses: actions/checkout@v3

- name: Get changed containers
run: |
dirs=$(dirname ${{ needs.test-containers.outputs.changed_files }} | sort | uniq )
{
echo "CONTAINER_DIRS<<EOS"
echo "$dirs"
echo "EOS"
} >> "$GITHUB_ENV"
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "COLLECTOR_QA_TAG=$(echo "${GITHUB_SHA}" | cut -c1-8)" >> "$GITHUB_ENV"
fi
- name: Login to quay.io/rhacs-eng
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}

- name: Make manifests
run: |
for dir in $CONTAINER_DIRS; do
Expand Down

0 comments on commit 8c0fec5

Please sign in to comment.