Skip to content

use ruby version 3.3.4 #123

use ruby version 3.3.4

use ruby version 3.3.4 #123

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [focal, jammy, noble]
arch: ["amd64", "arm64"]
location: ["", "-usr-local"]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.4"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Install gems
run: bundle install
- name: Build package
run: make -f Makefile.docker container-${{ matrix.os }}${{ matrix.location }} package-${{ matrix.os }}${{ matrix.location }} ARCH=${{ matrix.arch }}
- name: Setup docker credentials
run: echo ${{ secrets.DOCKER_TOKEN }} | docker login -u stkaes --password-stdin
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- name: Push container to docker registry
run: make -f Makefile.docker push-${{ matrix.os }}${{ matrix.location }} ARCH=${{ matrix.arch }}
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- name: Setup SSH credentials
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/railsexpress.key
chmod 600 ~/.ssh/railsexpress.key
cat >>~/.ssh/config <<END
Host railsexpress.de
HostName railsexpress.de
User uploader
IdentityFile ~/.ssh/railsexpress.key
StrictHostKeyChecking no
END
env:
SSH_KEY: ${{ secrets.RAILSEXPRESS_SSH_KEY }}
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- name: Upload the package
run: make -f Makefile.docker publish-${{ matrix.os }}${{ matrix.location }} ARCH=${{ matrix.arch }}
if: github.event_name == 'push' && github.ref == 'refs/heads/master'