Skip to content

Merge pull request #1698 from brefphp-bot/bref/layers #110

Merge pull request #1698 from brefphp-bot/bref/layers

Merge pull request #1698 from brefphp-bot/bref/layers #110

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