Unverified Commit ede1ef9b authored by sparkcyf's avatar sparkcyf Committed by GitHub
Browse files

Update main.yml

parent 30f3a274
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -23,9 +23,6 @@ jobs:
            VERSION=${GITHUB_REF#refs/tags/v}
          fi
          echo ::set-output name=tags::${VERSION} 
      - name: Get current date
        id: date
        run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
  push-ghcr:
    runs-on: ubuntu-20.04
    env:
@@ -33,6 +30,9 @@ jobs:
      REGISTRY: ghcr.io
    steps:
      - uses: actions/checkout@v2
      - name: Get current date
        id: date
        run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
      - name: Login
        uses: docker/login-action@v1
        with:
@@ -46,4 +46,5 @@ jobs:
          file: ./Dockerfile
          push: true
          tags: |
            ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest            
            SUSTech-CRA/bandersnatch-docker/${{ env.IMAGE_NAME }}:latest
            SUSTech-CRA/bandersnatch-docker/${{ env.IMAGE_NAME }}:build-${{ steps.date.outputs.date }}