# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
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
| FROM dev as test | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \ | |
| wget \ | |
| unzip \ | |
| apt-utils \ | |
| libasound2 \ | |
| libatk1.0-0 \ |
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
| if Rails.env.development? | |
| FileUtils.mkdir_p(Rails.root.join('config', 'certs')) | |
| key_path = Rails.root.join('config', 'certs', 'development.key') | |
| crt_path = Rails.root.join('config', 'certs', 'development.crt') | |
| unless File.exist?(key_path) && File.exist?(crt_path) | |
| def cert_domain | |
| 'localhost' # Setting[:cookie_domain] || 'localhost' | |
| end |
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
| # -*- coding: utf-8 -*- | |
| """A simple tool to document how to control AWS resources. | |
| AWS AUTHENTICATION | |
| ------------------- | |
| In order to run any of the code below, you need a profile with AWS credentials | |
| set up on your computer. It's very easy to do this. Google how to configure | |
| your profile with boto3, or visit the docs: |
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
| # syntax = docker/dockerfile:1 | |
| # This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand: | |
| # docker build -t my-app . | |
| # docker run -d -p 80:80 -p 443:443 --name my-app -e RAILS_MASTER_KEY=<value from config/master.key> my-app | |
| # Make sure RUBY_VERSION matches the Ruby version in .ruby-version | |
| ARG RUBY_VERSION=3.3.2 | |
| FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base |
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
| trigger: | |
| - master | |
| resources: | |
| - repo: self | |
| variables: | |
| azureSubscription: '<azure-subscription>' | |
| dockerRegistryServiceConnection: '<service-connection>' | |
| imageRepository: '<repository-name>' |
OlderNewer