Manually install docker #79
Workflow file for this run
This file contains 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: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- name: Linting | |
run: bundle exec standardrb | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
bundler-cache: true | |
- name: test | |
run: bundle exec rspec spec | |
integration_test: | |
runs-on: pub-hk-ubuntu-22.04-xlarge | |
strategy: | |
matrix: | |
stack: ["heroku-20", "heroku-22"] | |
version: ["3.1.4"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Output CHANGELOG | |
run: bin/print_changelog "${{matrix.version}}" | |
- name: Build Docker image | |
run: bin/activate_docker "${{matrix.stack}}" | |
- name: Build and package Ruby runtime | |
run: bin/build_ruby "${{matrix.stack}}" "${{matrix.version}}" | |
- name: Verify ruby executable and output rubygems version | |
run: bin/print_gem_version "${{matrix.stack}}" "${{matrix.version}}" | |
integration_test-heroku-24-amd: | |
runs-on: pub-hk-ubuntu-22.04-xlarge | |
strategy: | |
matrix: | |
stack: ["heroku-24"] | |
version: ["3.2.3"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Output CHANGELOG | |
run: bin/print_changelog "${{matrix.version}}" | |
- name: Build Docker image | |
run: bin/activate_docker "${{matrix.stack}}" | |
- name: Build and package Ruby runtime | |
run: bin/build_ruby "${{matrix.stack}}" "${{matrix.version}}" | |
- name: Verify ruby executable and output rubygems version | |
run: bin/print_gem_version "${{matrix.stack}}" "${{matrix.version}}" amd64 | |
integration_test-heroku-24-arm: | |
runs-on: pub-hk-ubuntu-22.04-arm-large | |
strategy: | |
matrix: | |
stack: ["heroku-24"] | |
version: ["3.2.3"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install docker | |
run: | | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
sudo docker run hello-world | |
sudo usermod -aG docker $USER | |
sudo apt-get install acl | |
sudo setfacl --modify user:$USER:rw /var/run/docker.sock | |
- name: Output CHANGELOG | |
run: bin/print_changelog "${{matrix.version}}" | |
- name: Build Docker image | |
run: bin/activate_docker "${{matrix.stack}}" | |
- name: Build and package Ruby runtime | |
run: bin/build_ruby "${{matrix.stack}}" "${{matrix.version}}" | |
- name: Verify ruby executable and output rubygems version | |
run: bin/print_gem_version "${{matrix.stack}}" "${{matrix.version}}" arm64 |