Upgrade to 1.0.3 and release. #148
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 Images | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "*" | |
jobs: | |
Tests: | |
uses: enspirit/startback/.github/workflows/tests.yml@master | |
Release: | |
needs: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: ['2.7', '3.1', '3.2'] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
steps: | |
- uses: act10ns/slack@v1 | |
with: | |
status: starting | |
channel: '#opensource-cicd' | |
- uses: actions/checkout@v2 | |
- name: Get tag if exist | |
run: echo "VERSION=$(git describe --contains || true)" >> $GITHUB_ENV | |
- run: echo "MRI_VERSION=${{ matrix.ruby-version }}" >> $GITHUB_ENV | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Building & pushing images | |
id: build-images | |
run: make images | |
- uses: act10ns/slack@v1 | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
channel: '#opensource-cicd' | |
if: always() |