Skip to content

Commit

Permalink
ci(github): split Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Mar 9, 2023
1 parent 1ebcb99 commit 493c5cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,32 @@ jobs:
needs: test
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
OS: ["debian-bullseye", "debian-bookworm", "fedora-37"]
NODE_VERSION: ["18"]
VARIANT: ["", "-nightly"]
env:
DOCKER_ARTIFACT_PATH: ./build/${{ matrix.OS }}-${{ matrix.NODE_VERSION }}${{ matrix.VARIANT }}.tar
DOCKER_IMAGE_TAG: ${{ matrix.OS }}-${{ matrix.NODE_VERSION }}${{ matrix.VARIANT }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.DOCKER_IMAGE_TAG }}
path: ./build
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PAT }}
- name: Push to Docker Hub
run: ./scripts/ci/push_to_docker_hub.sh
run: |
docker load -i ${{ env.DOCKER_ARTIFACT_PATH }}
docker push ${{ env.DOCKERHUB_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG }}
- name: Update Docker Hub Readme
uses: peter-evans/dockerhub-description@v3
with:
Expand Down
14 changes: 0 additions & 14 deletions scripts/ci/push_to_docker_hub.sh

This file was deleted.

0 comments on commit 493c5cd

Please sign in to comment.