Skip to content

Commit

Permalink
migrate to gha
Browse files Browse the repository at this point in the history
  • Loading branch information
meghaniankov committed Jan 2, 2024
1 parent fe4dbac commit faed286
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: push

on: push

permissions:
contents: read
id-token: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
- run: bundle install
- run: rake spec

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
- run: rake version
- run: rake build

docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- id: meta
uses: docker/metadata-action@v4
with:
images: quay.io/uswitch/terrafying-components
tags: |
type=sha,prefix=,format=long,
type=ref,event=branch
- uses: docker/build-push-action@v4
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit faed286

Please sign in to comment.