Skip to content

Commit

Permalink
Merge pull request #1 from hifis-net/github-actions
Browse files Browse the repository at this point in the history
Add CI workflow
  • Loading branch information
Normo authored Dec 9, 2024
2 parents 9e5b09f + d2802f1 commit b9b3f22
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "CI"

on:
pull_request:
push:
branches:
- "main"

jobs:
shellcheck:
name: "Shellcheck"
runs-on: "ubuntu-24.04"
steps:
- uses: "actions/checkout@v4"
- name: "Run ShellCheck"
uses: "ludeeus/action-shellcheck@master"
16 changes: 8 additions & 8 deletions kolla-pull-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ kolla_release="zed-ubuntu-jammy"
IMAGE_LIST="kolla-images.list"

#
for qw in `cat $IMAGE_LIST`
while IFS= read -r image
do
echo "===========> Pull ==> $qw"
docker pull $public_registry_host/openstack.kolla/$qw:$kolla_release
docker tag $public_registry_host/openstack.kolla/$qw:$kolla_release "$local_registry_host:4000/openstack.kolla/$qw:$kolla_release"
echo "===========> Push ==> $qw"
docker push "$local_registry_host:4000/openstack.kolla/$qw:$kolla_release"
docker rmi $public_registry_host/openstack.kolla/$qw:$kolla_release
done
echo "===========> Pull ==> ${image}"
docker pull "${public_registry_host}/openstack.kolla/${image}:${kolla_release}"
docker tag "${public_registry_host}/openstack.kolla/${image}:${kolla_release}" "$local_registry_host:4000/openstack.kolla/${image}:${kolla_release}"
echo "===========> Push ==> ${image}"
docker push "$local_registry_host:4000/openstack.kolla/${image}:${kolla_release}"
docker rmi "${public_registry_host}/openstack.kolla/${image}:${kolla_release}"
done < $IMAGE_LIST

0 comments on commit b9b3f22

Please sign in to comment.