diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4684dd64..858e6f06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,13 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v1 - - name: Cache Docker layers uses: actions/cache@v2 with: @@ -26,22 +19,22 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- - - uses: docker/login-action@v1 + name: Login to Docker Hub + uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: - context: ./ + context: ./ file: ./Dockerfile builder: ${{ steps.buildx.outputs.name }} push: true - tags: ushamandya/simplewhale:latest + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/simplewhaleci:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - - - name: Image digest + - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}