Skip to content

ci: Remnoved latest and stable builds #21

ci: Remnoved latest and stable builds

ci: Remnoved latest and stable builds #21

Workflow file for this run

---
name: build tag
# Actions for any 'unofficial' tag.
#
# It's not an official tag if it's not formed from 2 or 3 digits
# (i.e. is not 'N.N(.N)'). We publish images using the tag as a tag.
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# At the GitHub 'organisation' or 'project' level you must have the following
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
#
# DOCKERHUB_USERNAME
# DOCKERHUB_TOKEN
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (none)
#
# For automated deployment we expect the following in the environment: -
#
# (none)
on:
push:
tags:
- '**'
- '![0-9]+.[0-9]+.'
- '![0-9]+.[0-9]+.[0-9]+'
jobs:
publish-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push sql-backup
uses: docker/build-push-action@v6
with:
tags: informaticsmatters/sql-backup:${{ env.GITHUB_REF_SLUG }}
context: sql-backup
push: true
- name: Build and push sql-recovery
uses: docker/build-push-action@v6
with:
tags: informaticsmatters/sql-recovery:${{ env.GITHUB_REF_SLUG }}
context: sql-recovery
push: true