Skip to content

is it now docker compose? #19

is it now docker compose?

is it now docker compose? #19

Workflow file for this run

name: Build and publish to public ECR
on:
push:
branches:
- main
- "[0-9]*"
- "v[0-9]*"
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Build
run: |
docker build -t image-resizer .
- name: Lint
run: |
docker compose run --rm app bundle exec rubocop
- name: Test
run: |
docker compose run -e APP_ENV=test --rm app bundle exec rspec
build:
name: Publish image
runs-on: ubuntu-22.04
needs: test
steps:
- name: Build and push to ECR
uses: citizensadvice/build-and-push-action@v1
with:
aws_access_key: ${{ secrets.PUBLIC_PUSH_ECR_AWS_KEY }}
aws_secret_key: ${{ secrets.PUBLIC_PUSH_ECR_AWS_SECRET }}
dockerfile_context: '.'
repository_name: image-resizer
multiarch_build: 'enabled'
auth_token: ${{ secrets.GITHUB_TOKEN }}