Skip to content

Commit

Permalink
chore: publish to DockerHub after release
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed May 16, 2023
1 parent 8ede802 commit 7d47b5f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/docker.yml

This file was deleted.

27 changes: 25 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,30 @@ on:
- .release_notes/**

jobs:
if_merged:
gh_release:
if: github.event.pull_request.merged == true
uses: taskany-inc/release/.github/workflows/gh_release.yml@main

docker:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Version
id: version
run: |
echo "version<<EOF" >> $GITHUB_OUTPUT
echo "$(cat version)" >> $GITHUB_OUTPUT
echo EOF >> $GITHUB_OUTPUT
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: taskany/issues:latest,taskany/issues:${{ steps.version.outputs.version }}

0 comments on commit 7d47b5f

Please sign in to comment.