Skip to content

chore(master): release 5.1.0 #62

chore(master): release 5.1.0

chore(master): release 5.1.0 #62

Workflow file for this run

---
name: build stable
# Actions for an 'official' tag.
#
# An official tag is a 2 or 3-digit value (i.e. 'N.N[.N]').
# We publish images using the tag as a tag and one using 'stable' as s tag.
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# At the GitHub 'organisation' or 'project' level you must have the following
# GitHub 'Secrets' defined (i.e. via 'Settings -> Secrets'): -
#
# DOCKERHUB_USERNAME
# DOCKERHUB_TOKEN
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (n/a)
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v5
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
build-args: |
GIT_SHA=${{ github.sha }}
SKIP_CHECKS=1
BASE_PATH=/data-manager-ui
push: true
tags: |
informaticsmatters/squonk2-data-manager-ui:${{ env.GITHUB_REF_SLUG }}
informaticsmatters/squonk2-data-manager-ui:stable
trigger-awx:
needs: build
runs-on: ubuntu-latest
environment: awx/im-main
steps:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v5
- name: Trigger AWX
uses: informaticsmatters/trigger-awx-action@v1
with:
template: Data Manager UI -production-
template-host: ${{ secrets.AWX_HOST }}
template-user: ${{ secrets.AWX_USER }}
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
template-var: maui_image_tag
template-var-value: ${{ env.GITHUB_REF_SLUG }}