diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..9ab4fff --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,24 @@ +--- +name: Build Swift + +on: + push: + paths: + - '.github/actions/kolla-build/**' + - 'swift/**' + +env: + COMPONENT: swift + +jobs: + kolla-build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Kolla Build + uses: ./.github/actions/kolla-build + with: + component: ${{ env.COMPONENT }} + ghcr_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/swift/build.conf b/swift/build.conf new file mode 100644 index 0000000..d71549c --- /dev/null +++ b/swift/build.conf @@ -0,0 +1,18 @@ +[DEFAULT] +profile = default +base = rocky +base_tag = 9 +tag = 2023.2-rocky-9 + +# Container Registry Config +registry = ghcr.io +namespace = +push = true + +[profiles] +default = swift + +[swift-base] +type = git +location = https://opendev.org/openstack/swift +reference = stable/2023.2 diff --git a/swift/override.j2 b/swift/override.j2 new file mode 100644 index 0000000..b6d91fe --- /dev/null +++ b/swift/override.j2 @@ -0,0 +1,5 @@ +{% extends parent_template %} + +{% block swift_base_footer %} +RUN dnf install -y rsync && dnf clean all +{% endblock %}