diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..25dbaea --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,15 @@ +# Copyright 2024 Canonical Ltd. +# See LICENSE file for licensing details. +name: Tests + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + +jobs: + build: + name: Build rock + uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@gh-hosted-arm-runners diff --git a/README.md b/README.md deleted file mode 100644 index 2cbb663..0000000 --- a/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# Charmed PostgreSQL ROCK -[![Publish ROCK](https://github.com/canonical/charmed-postgresql-rock/actions/workflows/publish.yaml/badge.svg)](https://github.com/canonical/charmed-postgresql-rock/actions/workflows/publish.yaml) - -This repository contains the packaging metadata for creating a ROCK of PostgreSQL built from the official Ubuntu repositories. For more information on ROCKs, visit the [rockcraft Github](https://github.com/canonical/rockcraft). - -## Building the ROCK -The steps outlined below are based on the assumption that you are building the ROCK with the latest LTS of Ubuntu. If you are using another version of Ubuntu or another operating system, the process may be different. - -### Clone Repository -```bash -git clone git@github.com:canonical/charmed-postgresql-rock.git -cd charmed-postgresql-rock -``` -### Installing Prerequisites -```bash -sudo snap install rockcraft --edge --classic -sudo snap install docker -sudo snap install lxd -sudo snap install skopeo --edge --devmode -``` -### Configuring Prerequisites -```bash -sudo usermod -aG docker $USER -sudo lxd init --auto -``` -*_NOTE:_* You will need to open a new shell for the group change to take effect (i.e. `su - $USER`) -### Packing and Running the ROCK -```bash -rockcraft pack -sudo skopeo --insecure-policy copy oci-archive:charmed-postgresql*.rock docker-daemon:/charmed-postgresql: -docker run --rm -it /charmed-postgresql: -``` - -## License -The PostgreSQL ROCK is free software, distributed under the Apache -Software License, version 2.0. See -[LICENSE](https://github.com/canonical/charmed-postgresql-rock/blob/14-22.04/licenses/LICENSE-rock) -for more information. diff --git a/rockcraft.yaml b/rockcraft.yaml index 0eb2bbd..7e10850 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -10,6 +10,7 @@ description: | license: Apache-2.0 platforms: amd64: + arm64: parts: postgresql-snap: