chore(deps): update composer docker tag to v2.6 #44
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: Publish release | |
on: | |
push: | |
branches: | |
- main | |
- next | |
jobs: | |
publish_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare environment | |
run: make .env | |
- name: Build images | |
run: make build | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
if: github.ref == 'refs/heads/main' | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
if: github.ref == 'refs/heads/main' | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push images (new tag) | |
run: | | |
.ci/bin/push_image_version.sh ${{ steps.tag_version.outputs.new_tag }} | |
if: github.ref == 'refs/heads/main' | |
- name: Push images (next) | |
run: | | |
.ci/bin/push_image_version.sh next | |
if: github.ref == 'refs/heads/next' |