diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5e01f38..571ff5a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -32,18 +32,18 @@ jobs: if [[ ${{ github.event_name }} == 'schedule' ]]; then TAGS="$TAGS,${{ github.repository }}:latest,${{ github.repository }}:nightly" fi - echo ::set-output name=tags::${TAGS} + echo "tags=${TAGS}" >> $GITHUB_OUTPUT - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to DockerHub if: (github.event_name == 'release' && github.event.action == 'created') || github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'schedule' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: "Build and push docker image to DockerHub" id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: push: ${{ (github.event_name == 'release' && github.event.action == 'created') || github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'schedule' }} tags: ${{ steps.prepare.outputs.tags }}