Skip to content

Bump rails from 7.0.4.2 to 7.1.2 in /sample-apps/manual-instrumentation/ruby-on-rails #142

Bump rails from 7.0.4.2 to 7.1.2 in /sample-apps/manual-instrumentation/ruby-on-rails

Bump rails from 7.0.4.2 to 7.1.2 in /sample-apps/manual-instrumentation/ruby-on-rails #142

Workflow file for this run

name: PR Build
on:
pull_request:
jobs:
build:
name: Build apps
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
app-platform: [ ruby-on-rails ]
instrumentation-type: [ manual ]
env:
APP_PATH: sample-apps/${{ matrix.instrumentation-type}}-instrumentation/${{ matrix.app-platform }}
steps:
- name: Checkout This Repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Construct Sample App image tag
run: >
echo "APP_IMAGE=public.ecr.aws/aws-otel-test/ruby-${{ matrix.app-platform }}-${{ matrix.instrumentation-type }}:${{ github.sha }}" |
tee --append $GITHUB_ENV;
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: ${{ env.APP_PATH }}
tags: |
${{ env.APP_IMAGE }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache