github.com/core-coin/go-core/v2@v2.1.9/.github/workflows/docker.yml (about)

     1  name: gocore docker
     2  on:
     3    push:
     4      tags:
     5        - 'v*'
     6  jobs:
     7    docker:
     8      name: docker
     9      runs-on: ubuntu-latest
    10      steps:
    11        - name: Checkout
    12          uses: actions/checkout@v1
    13        - name: Version
    14          id: version
    15          run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
    16        - name: Docker
    17          run: |
    18            docker login ghcr.io -u ${{github.actor}} -p ${{secrets.GITHUB_TOKEN}}
    19            docker build . -t ghcr.io/core-coin/go-core:${{steps.version.outputs.tag}} -t ghcr.io/core-coin/go-core:latest
    20            docker push ghcr.io/core-coin/go-core:${{steps.version.outputs.tag}}
    21            docker push ghcr.io/core-coin/go-core:latest