diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f94c073..d7d666f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,13 +5,12 @@ on: branches: [ master ] jobs: - build: + login: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file docker/Dockerfile -t lbry/scribe:master - - name: Login to dockerhub - run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin - - name: Push image - run: docker push lbry/scribe:master + - + name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} \ No newline at end of file