diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 6404c856..0ba1c293 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -119,6 +119,48 @@ jobs: tags: ${{ secrets.DOCKER_USERNAME }}/fold:${{ github.event.release.tag_name }} ssh: default + build-alphalink-container: + runs-on: ubuntu-latest + steps: + - uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Checkout + uses: actions/checkout@v4 + + - name: Free disk space + run: | + rm -rf /opt/hostedtoolcache + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push alphalink container + if: github.event_name == 'push' + uses: docker/build-push-action@v5 + with: + context: . + file: ./docker/alphalink.dockerfile + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/alphalink:latest + ssh: default + + - name: Build and push alphalink container with version + if: github.event_name == 'release' && github.event.action == 'published' + uses: docker/build-push-action@v5 + with: + context: . + file: ./docker/alphalink.dockerfile + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/alphalink:${{ github.event.release.tag_name }} + ssh: default + build-analysis-container: runs-on: ubuntu-latest steps: