From cb051a856940bfd1c0cc195024a6f2b84a36a5d2 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Thu, 12 May 2022 16:59:04 -0400 Subject: [PATCH 1/2] Fix release and add docker publish --- .github/workflows/ci_release.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index ca0552a1..97f1a0c8 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -62,10 +62,28 @@ jobs: needs: changes runs-on: ubuntu-latest if: ${{ (needs.changes.outputs.updates == 'true' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch' }} + outputs: + new_version: ${{ steps.version.outputs.new-version }} steps: - uses: actions/checkout@v3 - name: Version Release + id: version uses: SkynetLabs/.github/.github/actions/version-release@master with: github-token: ${{secrets.GITHUB_TOKEN}} - version-bump: ${{inputs.version}} + version-bump: ${{github.event.inputs.version}} + + docker: + needs: release + name: Build and Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - uses: SkynetLabs/.github/.github/actions/docker-publish@master + with: + docker_username: ${{ secrets.DOCKER_USERNAME}} + docker_password: ${{ secrets.DOCKER_PASSWORD}} + docker_repository: skynetlabs/accounts + semver_version: ${{ needs.release.outputs.new_version }} From a03b1f56e863f5c0ba90f567ce31103da1cae3a1 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Fri, 13 May 2022 11:27:29 +0200 Subject: [PATCH 2/2] Update .github/workflows/ci_release.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix accounts dockerhub repo name. Co-authored-by: Karol Wypchło --- .github/workflows/ci_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 97f1a0c8..404ac6ce 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -85,5 +85,5 @@ jobs: with: docker_username: ${{ secrets.DOCKER_USERNAME}} docker_password: ${{ secrets.DOCKER_PASSWORD}} - docker_repository: skynetlabs/accounts + docker_repository: skynetlabs/skynet-accounts semver_version: ${{ needs.release.outputs.new_version }}