Skip to content

Merge pull request #1642 from GrahamCampbell/1.x-actions #106

Merge pull request #1642 from GrahamCampbell/1.x-actions

Merge pull request #1642 from GrahamCampbell/1.x-actions #106

Workflow file for this run

name: Deploy Docker images
on:
push:
tags:
- '*' # On all tags
jobs:
publish:
name: Publishing images
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Docker login
run: echo '${{ secrets.DOCKER_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build images
run: make docker-images
- name: Publish images on Docker Hub
env:
DOCKER_TAG: ${{ steps.get_version.outputs.VERSION }}
run: make publish-docker-images