Skip to content

Commit

Permalink
ci: remove the slow tests from nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed Aug 4, 2023
1 parent 6d58f6f commit 639e8cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,43 +32,3 @@ jobs:
SLOW_TEST: true
run: |
make check
- name: alpine
run: |
export PATH=$PATH:$GITHUB_WORKSPACE
git clone https://github.com/alpinelinux/docker-alpine.git
chmod -R a+rwx docker-alpine
cd docker-alpine
TEMPDIR=$(mktemp -d)
stacker convert --docker-file Dockerfile --output-file stacker.yaml --substitute-file stacker-subs.yaml
stacker build -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=alpine --substitute STACKER_VOL1="$TEMPDIR"
stacker publish -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=alpine --substitute STACKER_VOL1="$TEMPDIR" --skip-tls --url docker://${REGISTRY_URL} --layer alpine --tag latest
rm -f stacker.yaml stacker-subs.yaml
stacker clean
cd $GITHUB_WORKSPACE
rm -rf docker-alpine
- name: elasticsearch
run: |
export PATH=$PATH:$GITHUB_WORKSPACE
git clone https://github.com/elastic/dockerfiles.git
chmod -R a+rwx dockerfiles
cd dockerfiles/elasticsearch
stacker convert --docker-file Dockerfile --output-file stacker.yaml --substitute-file stacker-subs.yaml
stacker build -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=elasticsearch
stacker publish -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=elasticsearch --skip-tls --url docker://${REGISTRY_URL} --layer elasticsearch --tag latest
rm -f stacker.yaml stacker-subs.yaml
stacker clean
cd $GITHUB_WORKSPACE
rm -rf dockerfiles
- name: python
run: |
export PATH=$PATH:$GITHUB_WORKSPACE
git clone https://github.com/docker-library/python.git
cd python/3.11/alpine3.17
chmod -R a+rw .
stacker convert --docker-file Dockerfile --output-file stacker.yaml --substitute-file stacker-subs.yaml
stacker build -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=python
stacker publish -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=python --skip-tls --url docker://${REGISTRY_URL} --layer python --tag latest
rm -f stacker.yaml stacker-subs.yaml
stacker clean
cd $GITHUB_WORKSPACE
rm -rf python
8 changes: 4 additions & 4 deletions test/convert.bats
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ EOF
mkdir -p /out
stacker build -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=app
if [ -z "${REGISTRY_URL}" ]; then
skip "skipping test because no registry found in REGISTRY_URL env variable"
skip "test because no registry found in REGISTRY_URL env variable"
fi
stacker publish -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=app --skip-tls --url docker://${REGISTRY_URL} --layer app --tag latest
rm -f stacker.yaml stacker-subs.yaml
Expand All @@ -41,7 +41,7 @@ EOF

@test "alpine" {
if [ -z "${SLOW_TEST}" ]; then
skip "skipping test since slow tests are not enabled"
skip "test since slow tests are not enabled"
fi
git clone https://github.com/alpinelinux/docker-alpine.git
chmod -R a+rwx docker-alpine
Expand All @@ -58,7 +58,7 @@ EOF

@test "elasticsearch" {
if [ -z "${SLOW_TEST}" ]; then
skip "skipping test since slow tests are not enabled"
skip "test since slow tests are not enabled"
fi
git clone https://github.com/elastic/dockerfiles.git
chmod -R a+rwx dockerfiles
Expand All @@ -74,7 +74,7 @@ EOF

@test "python" {
if [ -z "${SLOW_TEST}" ]; then
skip "skipping test since slow tests are not enabled"
skip "test since slow tests are not enabled"
fi
git clone https://github.com/docker-library/python.git
cd python/3.11/alpine3.17
Expand Down

0 comments on commit 639e8cb

Please sign in to comment.