Skip to content

Bump version to 5.3.0 #5

Bump version to 5.3.0

Bump version to 5.3.0 #5

Workflow file for this run

name: Release 🚀

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 39, Col: 5): Unexpected value 'depends-on'
on:
release:
types: [published]
env:
version: ${{ github.event.release.tag_name }}
docker_username: ${{ secrets.DOCKER_HUB_USERNAME }}
docker_password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
gem:
name: Ruby Gem 📦
runs-on: ubuntu-latest
environment: releases
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Ruby
uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0
with:
bundler-cache: true
ruby-version: ruby
- name: Release Gem
uses: rubygems/release-gem@ebe1ec66bd8d2c709ac29aa2b43438d450e7a0a6 # v1
docker:
name: Docker Image 🐳
depends-on: gem
runs-on: ubuntu-latest
environment: releases
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout Repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
- name: Checkout release
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
ref: refs/tags/${{ env.version }}
- name: Login to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
with:
username: ${{ env.docker_username }}
password: ${{ env.docker_password }}
- name: Build and push
uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4.2.1
with:
push: true
tags: |
bolshakov/stoplight-admin:${{ env.version }}
bolshakov/stoplight-admin:latest
platforms: linux/amd64, linux/arm64
context: .
file: Dockerfile