avoid malformed attribute in gff file for ploting protein length hist… #5
This file contains hidden or 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: Build and push anno_vis container image to GHCR | |
| # Run this workflow whenever a Dockerfile is updated. | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - anno_vis | |
| paths: | |
| - 'Docker/Docker_vis.txt' | |
| jobs: | |
| build-and-push-image: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: 'anno_vis' | |
| - name: Get Version | |
| id: get_version | |
| run: | | |
| VERSION=$(grep "version=" Docker/Docker_vis.txt | cut -d"=" -f 2 | sed -e 's/\"//g' ) | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| - name: Authenticate with container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| # Use the `docker/build-push-action` action to build the image described | |
| # by the specified Dockerfile. If the build succeeds, push the image to GHCR. | |
| # This action uses the `tags` parameters to tag the image with the Git tag name | |
| # the image, respectively, with the output from the "get_version" step above. | |
| # For more info: https://github.com/docker/build-push-action#usage. | |
| - name: Build and push container image | |
| id: push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: Docker/Docker_vis.txt | |
| push: true | |
| tags: ghcr.io/microbiomedata/nmdc-annotation_vis:${{ steps.get_version.outputs.version }} | |
| # References: | |
| # - https://docs.github.com/en/actions/learn-github-actions/variables#using-the-vars-context-to-access-configuration-variable-values | |
| # - https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages | |
| # - https://github.com/microbiomedata/nmdc-edge/blob/main/.github/workflows/build-and-push-image.yml | |
| # - https://stackoverflow.com/questions/59191913/how-do-i-get-the-output-of-a-specific-step-in-github-actions |