Merge pull request #1732 from brefphp-bot/bref/layers #112
Workflow file for this run
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: 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 |