Release #193
This file contains 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
name: Release | |
on: | |
workflow_dispatch: | |
jobs: | |
# migration: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - uses: actions-ecosystem/action-get-latest-tag@v1 | |
# id: get-latest-tag | |
# with: | |
# semver_only: true | |
# - uses: actions-ecosystem/action-bump-semver@v1 | |
# id: bump-semver | |
# with: | |
# current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
# level: patch | |
# - uses: bhowell2/github-substring-action@v1.0.0 | |
# name: Get the version number | |
# id: get-version | |
# with: | |
# value: ${{ steps.bump-semver.outputs.new_version }} | |
# index_of_str: v | |
# - name: Echo new version | |
# run: echo ${{ steps.get-version.outputs.substring }} | |
# - name: Login to GitHub Container Registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: ghcr.io | |
# username: ${{ github.actor }} | |
# password: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# - name: Build and push migration | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: ./migration | |
# push: true | |
# tags: ghcr.io/${{ github.actor }}/yoda-migration:latest,ghcr.io/${{ github.actor }}/yoda-migration:${{ steps.get-version.outputs.substring }} | |
# website: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - uses: actions-ecosystem/action-get-latest-tag@v1 | |
# id: get-latest-tag | |
# with: | |
# semver_only: true | |
# - uses: actions-ecosystem/action-bump-semver@v1 | |
# id: bump-semver | |
# with: | |
# current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
# level: patch | |
# - uses: bhowell2/github-substring-action@v1.0.0 | |
# name: Get the version number | |
# id: get-version | |
# with: | |
# value: ${{ steps.bump-semver.outputs.new_version }} | |
# index_of_str: v | |
# - name: Echo new version | |
# run: echo ${{ steps.get-version.outputs.substring }} | |
# - name: Copy openapi | |
# run: cp -r ./openapi ./website/openapi | |
# - name: Login to GitHub Container Registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: ghcr.io | |
# username: ${{ github.actor }} | |
# password: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Build and push website | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: . | |
# file: ./website/Dockerfile | |
# target: prod | |
# push: true | |
# tags: ghcr.io/${{ github.actor }}/yoda-website:latest,ghcr.io/${{ github.actor }}/yoda-website:${{ steps.get-version.outputs.substring }} | |
# - name: Build and push website | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: . | |
# file: ./website/Dockerfile | |
# target: prod_arm | |
# push: true | |
# tags: ghcr.io/${{ github.actor }}/yoda-website:arm-${{ steps.get-version.outputs.substring }} | |
# web: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - uses: actions-ecosystem/action-get-latest-tag@v1 | |
# id: get-latest-tag | |
# with: | |
# semver_only: true | |
# - uses: actions-ecosystem/action-bump-semver@v1 | |
# id: bump-semver | |
# with: | |
# current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
# level: patch | |
# - uses: bhowell2/github-substring-action@v1.0.0 | |
# name: Get the version number | |
# id: get-version | |
# with: | |
# value: ${{ steps.bump-semver.outputs.new_version }} | |
# index_of_str: v | |
# - name: Echo new version | |
# run: echo ${{ steps.get-version.outputs.substring }} | |
# - name: Login to GitHub Container Registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: ghcr.io | |
# username: ${{ github.actor }} | |
# password: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Build and push web | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: . | |
# file: ./server/Dockerfile.web | |
# push: true | |
# tags: ghcr.io/${{ github.actor }}/yoda-web:latest,ghcr.io/${{ github.actor }}/yoda-web:${{ steps.get-version.outputs.substring }} | |
app: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: ozonophore/action-get-latest-tag@v1.6.1 | |
id: get-latest-tag | |
with: | |
semver_only: true | |
- name: Echo current version | |
run: echo ${{ steps.get-latest-tag.outputs.tag }} | |
- uses: actions-ecosystem/action-bump-semver@v1 | |
id: bump-semver | |
with: | |
current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
level: patch | |
- uses: bhowell2/github-substring-action@v1.0.0 | |
name: Get the version number | |
id: get-version | |
with: | |
value: ${{ steps.bump-semver.outputs.new_version }} | |
index_of_str: v | |
- name: Echo new version | |
run: echo ${{ steps.get-version.outputs.substring }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push app | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./server/Dockerfile.app | |
push: true | |
tags: ghcr.io/${{ github.actor }}/yoda-app:latest,ghcr.io/${{ github.actor }}/yoda-app:${{ steps.get-version.outputs.substring }} | |
tbot: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: ozonophore/action-get-latest-tag@v1.6.1 | |
id: get-latest-tag | |
with: | |
semver_only: true | |
- name: Echo current version | |
run: echo ${{ steps.get-latest-tag.outputs.tag }} | |
- uses: actions-ecosystem/action-bump-semver@v1 | |
id: bump-semver | |
with: | |
current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
level: patch | |
- uses: bhowell2/github-substring-action@v1.0.0 | |
name: Get the version number | |
id: get-version | |
with: | |
value: ${{ steps.bump-semver.outputs.new_version }} | |
index_of_str: v | |
- name: Echo new version | |
run: echo ${{ steps.get-version.outputs.substring }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push app | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./tbot | |
file: ./tbot/Dockerfile | |
push: true | |
tags: ghcr.io/${{ github.actor }}/yoda-tbot:latest,ghcr.io/${{ github.actor }}/yoda-tbot:${{ steps.get-version.outputs.substring }} | |
web: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: ozonophore/action-get-latest-tag@v1.6.1 | |
id: get-latest-tag | |
with: | |
semver_only: true | |
- name: Echo current version | |
run: echo ${{ steps.get-latest-tag.outputs.tag }} | |
- uses: actions-ecosystem/action-bump-semver@v1 | |
id: bump-semver | |
with: | |
current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
level: patch | |
- uses: bhowell2/github-substring-action@v1.0.0 | |
name: Get the version number | |
id: get-version | |
with: | |
value: ${{ steps.bump-semver.outputs.new_version }} | |
index_of_str: v | |
- name: Echo new version | |
run: echo ${{ steps.get-version.outputs.substring }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push app | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./web | |
file: ./web/Dockerfile | |
push: true | |
tags: ghcr.io/${{ github.actor }}/yoda-web:latest,ghcr.io/${{ github.actor }}/yoda-web:${{ steps.get-version.outputs.substring }} | |
release: | |
runs-on: ubuntu-20.04 | |
needs: | |
# - migration | |
# - website | |
# - web | |
- tbot | |
- app | |
- web | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: ozonophore/action-get-latest-tag@v1.6.1 | |
id: get-latest-tag | |
with: | |
semver_only: true | |
- uses: actions-ecosystem/action-bump-semver@v1 | |
id: bump-semver | |
with: | |
current_version: ${{ steps.get-latest-tag.outputs.tag }} | |
level: patch | |
- name: Echo current version | |
run: echo ${{ steps.get-latest-tag.outputs.tag }} | |
- uses: bhowell2/github-substring-action@v1.0.0 | |
name: Get the version number | |
id: get-version | |
with: | |
value: ${{ steps.bump-semver.outputs.new_version }} | |
index_of_str: v | |
- name: Echo new version | |
run: echo ${{ steps.get-version.outputs.substring }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: false | |
prerelease: false | |
tag_name: ${{ steps.bump-semver.outputs.new_version }} | |
name: ${{ steps.bump-semver.outputs.new_version }} | |
body: | | |
Release ${{ steps.bump-semver.outputs.new_version }} |