Skip to content

Commit

Permalink
tests: remove azblob tests and add pushing to artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Aug 15, 2023
1 parent bf329ec commit 0077c05
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 233 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,32 +215,6 @@ jobs:
ARTIFACTORY_APT_AUTH_CONF: ${{ secrets.ARTIFACTORY_APT_AUTH_CONF }}
ARTIFACTORY_BASE64_GPG: ${{ secrets.ARTIFACTORY_BASE64_GPG }}

test-azblob:
runs-on: ubuntu-20.04
needs:
- base
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: ${{ env.BUILDX_VERSION }}
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
buildkitd-flags: --debug
-
name: Test
run: |
hack/azblob_test/run_test.sh
env:
ARTIFACTORY_APT_AUTH_CONF: ${{ secrets.ARTIFACTORY_APT_AUTH_CONF }}
ARTIFACTORY_BASE64_GPG: ${{ secrets.ARTIFACTORY_BASE64_GPG }}

test-os:
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -382,6 +356,7 @@ jobs:
TARGET: ${{ matrix.target-stage }}
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
CACHE_TO: type=gha,scope=image${{ matrix.target-stage }}
REGISTRY_TARGET: ${{ startsWith(github.ref, 'refs/tags/v') && secrets.ARTIFACTORY_REGISTRY_REPO || env.REPO_SLUG_TARGET }}
steps:
-
name: Checkout
Expand Down Expand Up @@ -411,7 +386,7 @@ jobs:
-
name: Build local image for testing
run: |
./hack/images local "$REPO_SLUG_TARGET" "nopush"
./hack/images local "$REGISTRY_TARGET" "nopush"
env:
# have CACHE_FROM here cause the "env" context is not available at the job level
CACHE_FROM: "type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }} type=gha,scope=image${{ matrix.target-stage }}"
Expand All @@ -427,13 +402,13 @@ jobs:
./hack/canonical_test/run_test.sh
env:
IMG_NAME: '${{ env.REPO_SLUG_TARGET }}:local'
IMG_NAME: '${{ env.REGISTRY_TARGET }}:local'
-
name: Push ${{ needs.release-base.outputs.tag }} to GHCR
if: needs.release-base.outputs.push == 'push'
run: |
docker buildx use ${{ steps.setup-buildx-builder.outputs.name }}
./hack/images "${{ needs.release-base.outputs.tag }}" "$REPO_SLUG_TARGET" push
./hack/images "${{ needs.release-base.outputs.tag }}" "$REGISTRY_TARGET" push
env:
# have CACHE_FROM here cause the "env" context is not available at the job level
CACHE_FROM: "type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }} type=gha,scope=image${{ matrix.target-stage }}"
Expand Down
16 changes: 0 additions & 16 deletions hack/azblob_test/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions hack/azblob_test/docker-bake.hcl

This file was deleted.

26 changes: 0 additions & 26 deletions hack/azblob_test/run_test.sh

This file was deleted.

131 changes: 0 additions & 131 deletions hack/azblob_test/test.sh

This file was deleted.

7 changes: 0 additions & 7 deletions hack/azblob_test/test1/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions hack/azblob_test/test2/Dockerfile

This file was deleted.

0 comments on commit 0077c05

Please sign in to comment.