2.x: Using ce-dev-ce-provision-config 2.x (#208) #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'devel-2.x: Ubuntu - Build and push ce-dev and ce-dev-controller images' | |
on: | |
push: | |
branches: | |
- devel-2.x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'devel-2.x' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: Install modules | |
run: npm install --production=false | |
- name: Generate distributions with oclif | |
run: | | |
npm run prepack-oclif | |
npx oclif pack tarballs --targets=linux-x64,linux-arm,linux-arm64,darwin-x64,darwin-arm64 --no-xz | |
npm run postpack-oclif | |
npm run renamedist | |
- name: Install test dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y p7zip-full libnss3-tools wget | |
cd /tmp | |
wget https://go.dev/dl/go1.22.1.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.22.1.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
git clone https://github.com/FiloSottile/mkcert && cd mkcert | |
go build -ldflags "-X main.Version=$(git describe --tags)" | |
sudo mv ./mkcert /usr/local/bin && cd ../ | |
sudo chmod +x /usr/local/bin/mkcert | |
rm -Rf mkcert | |
mkdir -p ~/.config/ce-dev | |
touch ~/.config/ce-dev/preferences-2.x.yml | |
echo 'docker_bin: docker' > ~/.config/ce-dev/preferences-2.x.yml | |
echo 'docker_compose_bin: docker compose' >> ~/.config/ce-dev/preferences-2.x.yml | |
echo 'mkcert_bin: mkcert' >> ~/.config/ce-dev/preferences-2.x.yml | |
- name: Build and push ce-dev and ce-dev-controller | |
run: | | |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
/bin/sh docker-images/export.sh --version devel-2.x --image-name ce-dev --dockerfile-path base-devel --push | |
/bin/sh docker-images/export.sh --version devel-2.x --image-name ce-dev-controller --dockerfile-path controller-devel --push |